Skip to content
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

random_string: add case-insensitive rejection string #630

Open
1 task done
ari-becker opened this issue Dec 11, 2024 · 0 comments
Open
1 task done

random_string: add case-insensitive rejection string #630

ari-becker opened this issue Dec 11, 2024 · 0 comments

Comments

@ari-becker
Copy link

Terraform CLI and Provider Versions

terraform 1.9.4
random: 3.6.3

Use Cases or Problem Statement

We rely upon random_string to generate resource identifiers for Azure resources.

Today, in a particular case, it generated xbox7zw6jugefzbnlvi8dl1z.

This lead to the following error:

unexpected status 400 (400 Bad Request) with error: ReservedResourceName: The resource name 'xbox7zw6jugefzbnlvi8dl1z' or a part of the name is a trademarked or reserved word

So the generated string ran afoul of https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-reserved-resource-name and caused the Terraform apply to error out.

Proposal

Some way of configuring the random_string provider with the Azure-provided list of reserved/trademarked strings in order to guarantee that the random provider doesn't provide random strings that violate this limitation.

How much impact is this issue causing?

Medium

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant