Hello, we frequently up having resources on an old...
# general
l
Hello, we frequently up having resources on an old version of a provider when we upgrade the providers. Now I have a stack with two versions and three instances (
default_5_16_2
,
default_5_29_1
and
default
) of the default AWS provider and I'd like to switch to an explicitly defined provider. IIUC, I need to alias the new explicit provider to the default one, but I can't add three aliases for three default providers on a single explicit provider, can I?
Is there a way I can put all resources on the same default provider?
I just did:
Copy code
sed  's/urn:pulumi:<stack>::<project>::pulumi:providers:aws::default_5_16_2::29f40f3d-b9b9-43e6-851d-1828e03ed402/urn:pulumi:<stack>::<project>::pulumi:providers:aws::default_5_29_1::f86ac7fb-4076-429a-b588-f34a9a4760a7/' stack-before.json > stack-after.json
but I doubt it's kosher...