-
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
Error unexpected EOF occurs when filter, prefix, tags are missing in aws_s3_bucket_metric #8344
Comments
Turn on TF_LOG
|
Relevant part from the crash log
|
This has been released in version 2.14.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 @papalagichen as hashicorp/terraform#21029. 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
Crash Output
Expected Behavior
According to s3_bucket_metric document,
filter
argument is optional.filter
should be ok to be absent. Further,prefix
andtags
configurations underfilter
argument are both optional. It should allowfilter
argument to be empty.Since AWS S3 allows empty prefix / tags, it makes sense to support empty string in
prefix
andtags
underfilter
argument.Actual Behavior
Steps to Reproduce
terraform init
terraform plan
terraform apply
Additional Context
I have a workaround by putting
prefix = "/"
underfilter
, S3 metric filter will be created and becomes empty finally.The Terraform command was executed directly from MacOS 10.14.4 with Bash shell 5.0.
References
The text was updated successfully, but these errors were encountered: