-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Bad error (message?) aws_s3_bucket_lifecycle_configuration complains about "Base level prefix" when there is none #23299
Comments
Hi @Nuru , thank you for raising this issue. From other issues I've seen come in related to the As for the documentation, I'll take note of the feedback as it can certainly be improved. Though i do want to note that
should technically not work as the S3 API documentation notes that
and within the resource,
Thus an initial
|
@anGie44 Thank you for the quick and detailed response. It strikes me as odd (certainly unintuitive) that an empty |
The resolution for #23228 is quite similar to here I believe in that the AWS API actually requires I understand the existing guidance is not clear and will move forward with keeping this as a documentation update 👍 Thanks again @Nuru for the feedback. If you have recommendations for specific wording you would like to see, let us know or if you're interested in submitting a PR, happy to review it as well. |
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)
Terraform Configuration Files
Creating an S3 bucket and
aws_s3_bucket_lifecycle_configuration
but only specifyingprefix
inside therule.filter
block.Click to reveal `aws_s3_bucket_lifecycle_configuration` code
Expected Behavior
I expect this should apply cleanly. Note that if I apply only 1 of the 2 rules (either one) it does apply cleanly. It is only when applying both rules that it fails.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
BTW, it would be nice if the documentation would explain the difference between
and
References
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_lifecycle_configuration#filter
The text was updated successfully, but these errors were encountered: