billowy-tiger-6272
11/23/2022, 2:50 PMvar resourceGroup = new ResourceGroup("resourceGroup");
, but this will generate a resource group with a random name, and that if you want to give a fixed name you need to specify it in the ResourceGroupArgs
class... But then we end up having like 2 instances of the resource "name"... How is this supposed to be handled correctly? I'd like to reduce code duplication (mainly if I'm interpolating the resources names based on the environment and such, but having to do twice for every resource looks kind of weird... Perhaps I'm misusing it... 🤔little-library-54601
11/23/2022, 3:02 PMTags =
{
{ "environment", "Development" },
},
echoing-dinner-19531
11/23/2022, 4:28 PMbillowy-tiger-6272
11/23/2022, 4:45 PMechoing-dinner-19531
11/23/2022, 5:20 PMicy-doctor-13719
11/25/2022, 3:23 PMResourceGroupName = $"rg-{p.projectName}-{p.env}"
billowy-tiger-6272
11/25/2022, 4:51 PMbored-activity-40468
11/26/2022, 11:30 PM