terraform-aws-ecs-alb icon indicating copy to clipboard operation
terraform-aws-ecs-alb copied to clipboard

S3Bucket validation transient issue

Open ktibi opened this issue 3 years ago • 7 comments

Hello @jnonino ,

Since your udpate, I have issue during sonarqube deployment :

 Error: failure configuring LB attributes: InvalidConfigurationRequest: S3Bucket validation transient issue
      status code: 400, request id: 391d3af7-99cd-4cd8-9617-15557228d1ce

  with module.sonar.module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.aws_lb.lb,
  on .terraform/modules/sonar.ecs_fargate.ecs-fargate-service.ecs-alb/main.tf line 26, in resource "aws_lb" "lb":
  26: resource "aws_lb" "lb" {

ktibi avatar Jun 28 '22 09:06 ktibi

Works if I disable S3 export log from LB.

ktibi avatar Jun 28 '22 11:06 ktibi

Yes, seems to be an issue there. I found this while searching about it AWS S3 Bucket for ALB Transient Issue . When I have some time I will try to find a way to solve it.

jnonino avatar Jun 28 '22 11:06 jnonino

Also reported in terraform-aws-ecs-fargate issue #49

jnonino avatar Jun 28 '22 12:06 jnonino

Hi, how are you? Can you check if change in latest version fixed the issue?

jnonino avatar Jun 29 '22 11:06 jnonino

I'm getting exactly the same error with latest version.

Also the bucket s3 arn should be provided as output so lifecycle can be configured.

ricardf avatar Jul 06 '22 11:07 ricardf

Also getting the error when using an S3 bucket in another region

│ Error: failure configuring LB attributes: InvalidConfigurationRequest: S3Bucket validation transient issue │ status code: 400, request id: 8db33ae0-168a-42c2-bd37-109b1d2c6664

tech-restack avatar Apr 14 '23 06:04 tech-restack

I also got that error when the bucket where the elb logs are sent had the encryption option "Server-side encryption with AWS Key Management Service keys (SSE-KMS)" with an aws managed key, and the error disappeared after switching the bucket to "Server-side encryption with Amazon S3 managed keys (SSE-S3)".

So I think the bug/error is on AWS side with the bucket encryption and not on terraform side.

aiplescaamdaris avatar Jul 17 '24 19:07 aiplescaamdaris