hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.16k forks source link

Tech-Debt: Migrate all acceptance tests to use the independent s3 resources #22997

Closed anGie44 closed 2 years ago

anGie44 commented 2 years ago

Community Note

Description

Now that arguments in the s3_bucket resource have been deprecated, tests across services should be updated to use the corresponding independent resources as errors will arise e.g.

Error: Value for unconfigurable attribute

          with aws_s3_bucket.hoge,
          on terraform_plugin_test.tf line 6, in resource "aws_s3_bucket" "hoge":
           6: resource "aws_s3_bucket" "hoge" {

        Can't configure a value for "server_side_encryption_configuration": its value
        will be decided automatically based on the result of applying this
        configuration.

Affected Tests

The following require migrating to aws_s3_bucket_policy:

The following require migrating to aws_s3_bucket_acl:

References

github-actions[bot] commented 2 years ago

This functionality has been released in v4.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 2 years ago

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.