Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3Bucket validation transient issue #28

Open
ktibi opened this issue Jun 28, 2022 · 7 comments
Open

S3Bucket validation transient issue #28

ktibi opened this issue Jun 28, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@ktibi
Copy link

ktibi commented Jun 28, 2022

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
Copy link
Author

ktibi commented Jun 28, 2022

Works if I disable S3 export log from LB.

@jnonino jnonino added the bug Something isn't working label Jun 28, 2022
@jnonino
Copy link
Member

jnonino commented Jun 28, 2022

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
Copy link
Member

jnonino commented Jun 28, 2022

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

@jnonino
Copy link
Member

jnonino commented Jun 29, 2022

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

@jnonino jnonino self-assigned this Jun 29, 2022
@ricardf
Copy link

ricardf commented Jul 6, 2022

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.

@tech-restack
Copy link

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

@aiplescaamdaris
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

4 participants