-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_s3control_bucket_lifecycle_configuration throws "unknown format" #20963
Comments
Hi @jcreyf , thank you for raising this issue. Looking at the bucket arn being provided as input, |
Hi @anGie44 , you are absolutely correct! Turns out I'm not trying to set a lifecycle on an Outpost S3 Bucket but on regular S3 Buckets. |
What I need is part of the |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_s3control_bucket_lifecycle_configuration
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
Panic Output
Expected Behavior
This should create a new S3 Bucket Lifecycle Rule and configure it with a filter and number of days for objects to expire in the configured S3 Bucket / Prefix.
Actual Behavior
Fails to apply with error:
error parsing S3 Control Bucket ARN (): unknown format
Steps to Reproduce
The provided Terraform Configuration File in this ticket is pretty straight forward and stands on its own.
Just replace my S3 Bucket arn with another arn that you have access to and set the filter prefix to some location in the bucket.
Important Factoids
AccountID
in the parsed S3 ARN is empty):aws/resource_aws_s3control_bucket_policy.go
terraform-provider-aws/aws/resource_aws_s3control_bucket_policy.go
Line 74 in 1194e7a
S3 resources are global though and don't need accountIDs.
I tried by adding the accountID to the S3 ARN anyways and am then getting a different exception thrown in Terraform Apply:
aws_s3control_bucket_lifecycle_configuration
was added toterraform-provider-aws
on Oct 27, 2020 and released for the first time in versionv3.13.0
(Oct 29, 2020):https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.13.0
The most current version of terraform-provider-aws at this point in time is v3.59.0 and no code changes have been made to
aws/resource_aws_s3control_bucket_policy.go
since it was first introduced. So upgrading the provider on my end to a newer version is not going to resolve my problem.References
terraform-provider-aws/aws/resource_aws_s3control_bucket_policy.go
Line 74 in 1194e7a
https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.13.0
The text was updated successfully, but these errors were encountered: