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
When the variable add_hostname_suffix is true it's going to compose the name as per this line of code: var.add_hostname_suffix ? "${local.hostname}-${format("%03d", count.index + 1)}" : local.hostname
On my use case I want abc-y001, so I'd use the name abc-y and a blank separator.
Please, let me know if you would accept such behavior or if you have any better Idea too.
Additional information
I can work in the PR but I just would like to know if you guys are interested in the behavior.
The text was updated successfully, but these errors were encountered:
On 16 Dec 2021, at 19:44, Morgante Pell ***@***.***> wrote:
I think we could accept a PR adding this as a variable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
TL;DR
I'd like to set a different separator when adding suffix to the hostname to compose the name
abc-y001
.Terraform Resources
Detailed design
When the variable
add_hostname_suffix
istrue
it's going to compose the name as per this line of code:var.add_hostname_suffix ? "${local.hostname}-${format("%03d", count.index + 1)}" : local.hostname
On my use case I want
abc-y001
, so I'd use the nameabc-y
anda blank separator
.Please, let me know if you would accept such behavior or if you have any better Idea too.
Additional information
I can work in the PR but I just would like to know if you guys are interested in the behavior.
The text was updated successfully, but these errors were encountered: