echoing-address-44214
03/21/2023, 1:22 AMasync prefix(): Promise<string> {
const parameter = await aws.ssm.getParameter(
{ name: "/prefix" }
).then(x=>x.value);
return parameter;
}
const name: string = convert prefix() to string
super("ruwen/RedisCluster", prefix() + id, {}, opts);
little-cartoon-10569
03/21/2023, 1:55 AMechoing-address-44214
03/21/2023, 1:55 AMlittle-cartoon-10569
03/21/2023, 1:57 AMechoing-address-44214
03/21/2023, 1:58 AMlittle-cartoon-10569
03/21/2023, 1:59 AMechoing-address-44214
03/21/2023, 2:01 AMlittle-cartoon-10569
03/21/2023, 2:02 AMechoing-address-44214
03/21/2023, 2:02 AMlittle-cartoon-10569
03/21/2023, 2:02 AMechoing-address-44214
03/21/2023, 2:04 AMsuper("ruwen/RedisCluster", name, {}, opts);
What happens if I have in my state two stacks who use for the name the same value?little-cartoon-10569
03/21/2023, 2:05 AMurn:pulumi:stackName::projectName::typeName::name
echoing-address-44214
03/21/2023, 2:06 AMname – The unique name of the resource.
So unique within a stack?little-cartoon-10569
03/21/2023, 2:06 AMechoing-address-44214
03/21/2023, 2:06 AMlittle-cartoon-10569
03/21/2023, 2:07 AMechoing-address-44214
03/21/2023, 2:07 AMlittle-cartoon-10569
03/21/2023, 2:07 AMechoing-address-44214
03/21/2023, 2:08 AM