Open georgikoemdzhiev opened 1 year ago
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.
Hi @georgikoemdzhiev 👋
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.
Hi @d-medvedev1 👋
The pet names are generated within the _randompet 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