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

Warning: Argument is deprecated regarding acl #208

Closed
davidjeddy opened this issue Dec 24, 2023 · 1 comment
Closed

Warning: Argument is deprecated regarding acl #208

davidjeddy opened this issue Dec 24, 2023 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@davidjeddy
Copy link

Describe the Bug

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Warning: Argument is deprecated
│ 
│   with module.this.module.cloudfront.aws_s3_bucket.origin,
│   on .terraform/modules/this.cloudfront/main.tf line 257, in resource "aws_s3_bucket" "origin":
│  257:   acl           = "private"
│ 
│ Use the aws_s3_bucket_acl resource instead

Expected Behavior

No warnig outputs 4.0.1

Steps to Reproduce

init/plan/apply using version

Screenshots

No response

Environment

  • OS: MacOS on 2018 MAcBookPro (Arm)

Additional Context

No response

@davidjeddy davidjeddy added the bug 🐛 An issue with the system label Dec 24, 2023
@nitrocode
Copy link
Member

No longer an issue

resource "aws_s3_bucket" "default" {
count = local.enabled ? 1 : 0
bucket = local.bucket_name
force_destroy = var.force_destroy
object_lock_enabled = local.object_lock_enabled
tags = module.this.tags
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

2 participants