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

Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead #148

Closed
dnyaneshwar-sonawane opened this issue Apr 15, 2022 · 3 comments · Fixed by #149

Comments

@dnyaneshwar-sonawane
Copy link

dnyaneshwar-sonawane commented Apr 15, 2022

Description

Warning: Argument is deprecated

  on ../modules/aws/s3-bucket/main.tf line 12, in resource "aws_s3_bucket" "this":
  12: resource "aws_s3_bucket" "this" {

Use the top-level parameter object_lock_enabled and the
aws_s3_bucket_object_lock_configuration resource instead

(and 15 more similar warnings elsewhere)

Getting this error after upgrading was the provider version.

Versions

  • Module version [Required]:

  • Terraform version:

Terraform v0.13.1
+ provider registry.terraform.io/hashicorp/aws v4.9.0
@antonbabenko
Copy link
Member

This issue has been resolved in version 3.1.0 🎉

@antonbabenko
Copy link
Member

Please take a look at the example code in #149

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants