Support aws_s3_bucket
in partitions without S3 Object Lock option available
#24809
Labels
bug
Addresses a defect in current functionality.
partition/aws-iso
Pertains to the aws-iso partition.
partition/aws-iso-b
Pertains to the aws-iso-b partition.
partition/aws-us-gov
Pertains to the aws-us-gov partition.
service/s3
Issues and PRs that pertain to the s3 service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.0
aws-provider hashicorp/aws v4.10.0
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Expected Behavior
In partitions that do not support S3 Object Lock, the S3 Bucket will be created when
object_lock_enabled
parameter is not declared.Actual Behavior
The
aws_s3_bucket
resource is not created because the S3 Object Lock is expected to be queried.Steps to Reproduce
terraform apply
Important Factoids
The S3 Bucket is being provisioned on a partition that does not have S3 Object Lock available.
The only workaround seems to be creating the S3 Bucket and using the data source for resources that are dependent on the exported attributes.
References
The text was updated successfully, but these errors were encountered: