Skip to content

The bucket does not allow ACLs #60

@aimestereo

Description

@aimestereo

version: 2.0.36

my config:

module "jenkins" {
  source              = "cn-terraform/jenkins/aws"
  name_prefix         = "jenkins"
  region              = var.aws_region
  vpc_id              = module.vpc.vpc_id
  public_subnets_ids  = module.vpc.public_subnets
  private_subnets_ids = module.vpc.private_subnets
}

error, all resources were created, but S3 ACL configuration failed with attached error. After manually enabling ACL for S3 bucket - next terraform run succeeded.

error:

module.jenkins.module.ecs-fargate-service.module.ecs-alb[0].module.lb_logs_s3[0].aws_s3_bucket_acl.logs: Creating...
╷
│ Error: error creating S3 bucket ACL for jenkins-jenkins-lb-logs-xfvuunq: AccessControlListNotSupported: The bucket does not allow ACLs
│       status code: 400, request id: MESAYN3CSKNNCVGB, host id: +jNTkMmiwb3vlvpUEP01YBsEwQhzAF8PXnCTyaVPv8cZQgPijZlKt7OUY47B5RNUZy/94Pws4qk=
│
│   with module.jenkins.module.ecs-fargate-service.module.ecs-alb[0].module.lb_logs_s3[0].aws_s3_bucket_acl.logs,
│   on .terraform/modules/jenkins.ecs-fargate-service.ecs-alb.lb_logs_s3/main.tf line 26, in resource "aws_s3_bucket_acl" "logs":
│   26: resource "aws_s3_bucket_acl" "logs" {
│
╵
ERRO[0071] Terraform invocation failed in /Users/aimestereo/projects/StatusMoney/demo/devops/terragrunt/us-west-1/stage/base-infrastructure/.terragrunt-cache/gmYJS8uADB49DexI5-p0wEef0s4/L9aVx8JWyIBukn_KhUmiCNb-eSo/terraform/base-infrastructure  prefix=[/Users/aimestereo/projects/StatusMoney/demo/devops/terragrunt/us-west-1/stage/base-infrastructure]
ERRO[0071] 1 error occurred:
        * [/Users/aimestereo/projects/StatusMoney/demo/devops/terragrunt/us-west-1/stage/base-infrastructure/.terragrunt-cache/gmYJS8uADB49DexI5-p0wEef0s4/L9aVx8JWyIBukn_KhUmiCNb-eSo/terraform/base-infrastructure] exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions