Decomposing parts of source name #6704
Unanswered
johnkwaters
asked this question in
Template authoring
Replies: 1 comment 2 replies
-
Hi @johnkwaters, We can recommend you create 2 separate symbols (parameters) and concat them together later by calling join macro. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our framework template we want to be able to use a syntax like Customer.Project as part of namespaces, filenames and directories, fpr instance creating a project file Customer.Project.Api with a namespace Customer.Project.Api etc. When using the template we would specify values for Customer.Project - currently done by using -n "SomeCustomer.SomeProject", and replacing the string Customer.Project. However, we also need the parts - customer and project - separately, for instance we want to create terraform templates that create azure resources like blobs and keyvaults, based on these two name parts, which need to be combined with different characters depending on the naming rules for each azure resource. For instance, a storage account might become customerprojectdevblob and a key vault customer-project-dev-kv.
What would be a good approach - and I don't think there is any specific terraform processing help, so would have to work with general text files?
Beta Was this translation helpful? Give feedback.
All reactions