You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda@Edge creates new CloudWatch LogGroups in each region where it is deployed to.
But Terraform only creates a single LogGroup in the main region.
So no retention policy is assigned to all but the initial region where Terraform is run from.
Idea
Since it requires a lot of configuration overhead to perform resource creation across multiple AWS regions in Terraform, we should use a hybrid solution for this.
CloudFormation Stacks are capable of replicate resources across different AWS regions:
Create CloudFormation template that contains the original CloudWatch Log Group
Use CloudFormation Stacks to replicate the CloudWatch LogGroup (+Settings) across multiple regions.
Provide preselection of regionsÏ based on the CloudFront PriceClass property (Price Class All ,Price Class 100, Price Class 200)
Goals
Pre create CloudWatch Log Groups in different AWS regions for Lambda@Edge
Destroy all created CloudWatch Log Groups in different regions on terraform destroy
Motivation
Lambda@Edge creates new CloudWatch LogGroups in each region where it is deployed to.
But Terraform only creates a single LogGroup in the main region.
So no retention policy is assigned to all but the initial region where Terraform is run from.
Idea
Since it requires a lot of configuration overhead to perform resource creation across multiple AWS regions in Terraform, we should use a hybrid solution for this.
CloudFormation Stacks are capable of replicate resources across different AWS regions:
Price Class All
,Price Class 100
,Price Class 200
)Goals
terraform destroy
Resources
Related Issues
The text was updated successfully, but these errors were encountered: