Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
r
rich-whale-93740
09/01/2023, 6:36 PM
It looks like changing from default provider to explicit provider requires us to re-create the resources. Is there a way to do a replace instead of re-create?
b
billowy-army-68599
09/01/2023, 6:39 PM
yes, you can alias the provider
https://www.pulumi.com/docs/concepts/options/aliases/
https://github.com/jaxxstorm/pulumi-examples/blob/206b6d29cfabbeca01f8870fd5143b3836a78760/typescript/databricks/explicit_provider/index.ts#L11
r
rich-whale-93740
09/01/2023, 8:14 PM
Nice - thanks
@billowy-army-68599
Instead of
alias
, does Pulumi support manually replace the provider for each resource?
b
billowy-army-68599
09/05/2023, 4:55 PM
alias is the canonical way, you can modify the state if you’d like
Post