Skip to content

S3 Bucket - acl - Argument is deprecated #120

@fracampit

Description

@fracampit

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

╷
│ Warning: Argument is deprecated
│
│   with module.build.aws_s3_bucket.cache_bucket,
│   on .terraform\modules\build\main.tf line 11, in resource "aws_s3_bucket" "cache_bucket":
│   11:   acl           = "private"
│
│ Use the aws_s3_bucket_acl resource instead
╵

Expected Behavior

Running the module does not throw any warnings

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run the module

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.16"
    }
  }

  required_version = ">= 1.2.0"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions