-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Terraform crashes on trying to apply s3 bucket inventory configs #16952
Comments
This comment has been minimized.
This comment has been minimized.
Hi @emagutu 👋 Thank you for filing this and sorry you ran into trouble here. There is a code issue in the resource "aws_s3_bucket_inventory" "example" {
# ... other configuration ...
dynamic "filter" {
for_each = len(var.filters) == 0 : [] : var.filters
content {
# ... configuration ...
}
}
} For more further help with your specific configuration, it may be best to reach out to the HashiCorp Community Forums where there are far more people ready to help, whereas the GitHub issues here are generally monitored only by the small set of code maintainers and as such we are not the best resource for tailored workarounds. Relevant portion of crash log:
Code: terraform-provider-aws/aws/resource_aws_s3_bucket_inventory.go Lines 211 to 213 in 50a3934
We have very recently introduced guidance on this in the contributing guide, but we need to go through the existing code to find and fix places this issue exists still. |
Hi @bflad, |
…ion, filter, and schedule configuration blocks Reference: #16952 Reference: #16953 Output from acceptance testing: ``` --- PASS: TestAccAWSS3BucketInventory_encryptWithSSEKMS (26.70s) --- PASS: TestAccAWSS3BucketInventory_basic (26.73s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSES3 (27.01s) ```
…ion, filter, and schedule configuration blocks (#17055) Reference: #16952 Reference: #16953 Output from acceptance testing: ``` --- PASS: TestAccAWSS3BucketInventory_encryptWithSSEKMS (26.70s) --- PASS: TestAccAWSS3BucketInventory_basic (26.73s) --- PASS: TestAccAWSS3BucketInventory_encryptWithSSES3 (27.01s) ```
The fix for this has been merged and will release with version 3.24.0 of the Terraform AWS Provider, later this week. 👍 |
This has been released in version 3.24.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @emagutu as hashicorp/terraform#27396. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/emagutu/062e0cd97b21c7913d11196a3a32c551
Crash Output
https://gist.github.com/emagutu/caa045280e44f9fb8e898fef9af73b16
Expected Behavior
s3 bucket inventory should be configured.
Actual Behavior
terraform crashed
Steps to Reproduce
terraform init
terraform apply
Additional Context
The terraform plan is successful but the terraform apply fails.
References
n/a
The text was updated successfully, but these errors were encountered: