https://pulumi.com logo
#typescript
Title
# typescript
b

bland-camera-22041

10/08/2021, 8:29 AM
I quite like this format
Copy code
const projectName = (params: TemplateStringsArray) =>
  `hello-world-${stage}-${String.raw(params)}`;
And use like so in my resources
Copy code
const resourceGroup = new azure.resources.ResourceGroup(projectName`rg`, {
  resourceGroupName: `Hello-World-${stage}`,
  location: azure.migrate.AzureLocation.UkSouth,
});
Will generate a URN like
hello-world-dev-rg