Hello! Just getting started with Pulumi, currently...
# getting-started
Hello! Just getting started with Pulumi, currently using the Digitalocean provider. I tried to add a tag for a resource in the Cloud UI to see whether Pulumi would roll it back (I don't have that tag in my code). After running
pulumi preview
it doesn't want to change the tags back to the state of my code. Is this possible to configure somehow?
pulumi refresh
should see the change and allow you to update the state accordingly such that a subsequent
pulumi up
will remove the tag since it’s not being set in your code. A variation on this is
pulumi up -r
which does the refresh and update in one call.