eager-cartoon-54068
04/09/2020, 11:04 PMaws.batch.ComputeEnvironment
, I have to specify computeEnvironmentName
and that exact name is used to deploy the resource. If I make any changes to the CE, I have to go in and change the name to avoid a conflict. Is there a way to get the suffix that Pulumi normally adds to resources so I don’t have to change the name every time I want to update an AWS Batch Compute Environment?gentle-diamond-70147
04/09/2020, 11:08 PMeager-cartoon-54068
04/09/2020, 11:46 PMconst id = new random.RandomId("id", {byteLength: 8});
I always get
error: Duplicate resource URN 'urn:pulumi:dev::folding-foundation::random:index/randomId:RandomId::id'; try giving it a unique name
random
package.const idasdf = new random.RandomId("id-asdf", {byteLength: 8});
error: Duplicate resource URN 'urn:pulumi:dev::folding-foundation::random:index/randomId:RandomId::id-asdf'; try giving it a unique name
computeEnvironmentNamePrefix
. It’s unfortunate that you can’t set the length of the id to generate, but this does what I need.gentle-diamond-70147
04/10/2020, 8:55 PMRandomString
, but computeEnvironmentNamePrefix
is likely easier in the long run.eager-cartoon-54068
04/10/2020, 8:56 PM