cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Set the log retention period of CW log groups to be an environment variable in terraform #110

Open ben851 opened 1 year ago

ben851 commented 1 year ago

Description

As a developer/operator of GC Notify terraform, I would like my infrastructure and application log retention periods to be synchronized so that we are able to trace logs across the entire system while remaining in line with log retention compliance requirements.

WHY are we building?

Currently all log retention periods for CW log groups are configured individually and there is a considerable difference in retention period days. This makes it difficult to manage, creates gaps in log analytics, and possibly puts us out of compliance with GoC log retention policies

WHAT are we building?

Convert the values for log retention in terraform to a single variable that is defined in the environment tfvars.

VALUE created by our solution

We will be able to ensure that we are in full compliance with GoC logging requirements, and we will remove any possible gaps in log analytics which will improve troubleshooting and support.

Acceptance Criteria

QA Steps

sastels commented 1 year ago

There may be places where we can't keep logs as long as we may wish - will have to identify these