https://pulumi.com logo
Title
s

sparse-state-34229

06/01/2020, 10:23 PM
can you gist the full command and output?
v

victorious-country-25661

06/01/2020, 10:25 PM
pulumi destroy --skip-preview
is the command. The only difference here is that the
pulumi up
was done by circleci but since it failed, I want to destroy the resources that the circleci process created until failed
I don't know if is related but I deployed my code with this (is something that I neved tried before)
const provider = new aws.Provider(`aws-provider-${region}`, {
    region
});

(async (): Promise<void> => {
    await pulumi.ProviderResource.register(provider);
})();
g

gentle-diamond-70147

06/01/2020, 10:37 PM
Where is
region
coming from in the arguments to
new aws.Provider()
?
v

victorious-country-25661

06/01/2020, 11:51 PM
It's a const just above that line
I was just trying and now I cant revert 🤦‍♂️
Sorry guys, any idea of this issue?
Just FYI. I was able to solve this issue by running
pulumi up
and then
pulumi destroy
. I have no idea what happened before but I think is a bug. The context was that the circleci jobs failed when deploying the stack and when I tried to destroy, this error was being thrown.
BTW, it would be awesome to have a feature like "--rollback-on-failure" or something like that