-
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
Missing information in documentation about name in aws_s3_bucket_metric #25251
Comments
Hey @ByJacob 👋 Thank you very much for taking the time to raise this! I was able to confirm this behavior (reproduction notes below). While I think that updating the documentation is needed, I think there's a bit more to be done here as well -- namely; we should make a change to the provider to validate the For whoever picks this up, my reproduction proving this behavior: WorkingConfiguration: resource "aws_s3_bucket" "test" {
bucket = "jretzolk-test"
}
resource "random_string" "test" {
length = 64
special = false
}
resource "aws_s3_bucket_metric" "test" {
bucket = aws_s3_bucket.test.bucket
name = random_string.test.result
} Output:
Not workingConfiguration: resource "aws_s3_bucket" "test" {
bucket = "jretzolk-test"
}
resource "random_string" "test" {
length = 65
special = false
}
resource "aws_s3_bucket_metric" "test" {
bucket = aws_s3_bucket.test.bucket
name = random_string.test.result
} Output:
|
I am looking at this issue. |
This functionality has been released in v4.20.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. Thank you! |
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. |
In resource
aws_s3_bucket_metric
can usename
with max 64 characters. After it return error:Community Note
Terraform CLI and Terraform AWS Provider Version
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
It will return a clearer error
Actual Behavior
MalformedXML
error.Steps to Reproduce
terraform apply
Important Factoids
The text was updated successfully, but these errors were encountered: