Closed kurtkanaskie closed 1 year ago
Configurations are reused between tests and examples. These are artifacts from folks copying what should be test-only configuration into the source sample- it's invalid Terraform code, and tests substitute a randomized suffix in its place. Seems like there are 78 cases across 34 files.
@edwardmedia this wouldn't be a bad idea for you to clean up if you have the cycles!
I do see this in 78 cases in 34 doc files. Let me clean them up @rileykarson
What I've done to achieve the same is to use:
resource "random_id" "random_suffix" {
byte_length = 4
}
resource "google_compute_region_network_endpoint_group" "tf_psc_neg_us_east1" {
name = "tf-psc-neg-us-east1-${lower(random_id.random_suffix.hex)}"
...
}
output "apigee_neg_name" {
value = google_compute_region_network_endpoint_group.tf_psc_neg_us_east1.name
}
Which results in an output: apigee_neg_name = "tf-psc-neg-us-east1-d6f6243e"
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Error
Steps to Reproduce
terraform apply
Important Factoids
References
0000