DEV Community

Discussion on: Serverless Static Wordpress on AWS for $0.01 a day

Collapse
 
droshow profile image
Droshow

Hey Pete,
Thankful for this and definitely gave it a shot.
After a while I encountered a problem
Error: Creating CloudWatch Log Group failed: OperationAbortedException: A conflicting operation is currently in progress against this resource. Please try again. '/aws/lambda/us-east-1.inexhaustiblelifestatictryouts_redirect_index_html'

│ with module.cloudfront.aws_cloudwatch_log_group.object_redirect_ue1_local,
│ on modules/cloudfront/main.tf line 14, in resource "aws_cloudwatch_log_group" "object_redirect_ue1_local":
│ 14: resource "aws_cloudwatch_log_group" "object_redirect_ue1_local" {

//
Now, this is after a clean assesment combo between terraform destroy and hand checking aws console if everything is clean.
I think this error is connected to version of terraform. Is there a proven version your code will run on?
Currently I have latest
Terraform v1.1.9
on linux_amd64

  • provider registry.terraform.io/hashicorp/archive v2.2.0
  • provider registry.terraform.io/hashicorp/aws v3.75.1
  • provider registry.terraform.io/hashicorp/local v2.2.2
  • provider registry.terraform.io/hashicorp/random v3.1.2
Collapse
 
petewilcock profile image
Pete Wilcock

Hi @droshow - this is a known issue. I think it's a race condition when trying to manage the log group to set a retention policy. If you retry again it should work.

Some comments have been hidden by the post's author - find out more