sparse-intern-71089
11/17/2022, 6:33 PMlittle-cartoon-10569
11/17/2022, 7:13 PMpulumi up
, so that it's in your state and used.
2. Export your state.
3. Make a backup of your state file.
4. Review your state file to figure out what replace expression you can use to replace all uses of A with B, without changing the definition of A.
5. Import your state.
6. Run pulumi up
to verify there are no changes.clever-sunset-76585
11/17/2022, 10:33 PMdry-potato-52542
11/17/2022, 10:34 PMlittle-cartoon-10569
11/17/2022, 11:04 PMdry-potato-52542
11/17/2022, 11:05 PMlittle-cartoon-10569
11/17/2022, 11:11 PMdry-potato-52542
11/17/2022, 11:24 PMlittle-cartoon-10569
11/17/2022, 11:25 PMclever-sunset-76585
11/18/2022, 12:05 AMDo aliases help when changing the provider? The provider is not in the URN, it's a hidden property of the resource...Ah good point. They don't. Provider resources are referenced by URN in a property called
provider
for each non-provider resource, so those will need to be searched/replaced in the checkpoint.
Also I wonder if there is some provider trickery that is possible here. For example, define an explicit provider with provider B, and specify aliases + the explicit provider
option in the ResourceOptions
. This may be cumbersome and perhaps not practical depending on how large the project is.