You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some resource parameters have a maximum length defined such as the domain_name property of the aws_opensearch_domain resource in the AWS provider (i.e. the domain name must be <= than 28 characters long). In those cases, if we want to use the random_pet resources to generate a random name for the domain_name property, it may generate a name that is longer than the maximum allowed length.
Do you have an ideas, how many letters will be in word generated by random_pet resource?
I tried to generate few dozens and the shortest word I've seen had 3 letters and the longest had 8 letters.
Thank you for submitting this enhancement request. We will prioritise looking into this issue further on the basis of the level of community interest indicated by up-votes.
The pet names are generated within the random_pet resource using the golang-petname Go module. The number of letters in the generated pet name(s) are dependent upon the length, separator, and prefix attributes supplied. An examination of the lists used within the golang-petname Go module should provide some guidance in this respect.
Terraform CLI and Provider Versions
Terraform CLI version: v.1.4.6
Use Cases or Problem Statement
Some resource parameters have a maximum length defined such as the
domain_name
property of theaws_opensearch_domain
resource in the AWS provider (i.e. the domain name must be <= than 28 characters long). In those cases, if we want to use therandom_pet
resources to generate a random name for thedomain_name
property, it may generate a name that is longer than the maximum allowed length.Current:
Proposal
Add a
pet_name_length
property to therandom_pet
resourceHow much impact is this issue causing?
Low
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: