380 B
380 B
Migrating from a local state file to a Cloudflare bucket
while still on the local backend
pulumi stack export --file pulumi_state.json
switch backends
pulumi login s3://?endpoint=.r2.cloudflarestorage.com®ion=auto
recreate the stack on the new backend and import the state
pulumi stack init dev pulumi stack import --file pulumi_state.json