brave-angle-33257
11/06/2019, 7:31 PMdeploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force MyCompany/us-east-2-prod
error: no stack named 'MyCompany/us-east-2-prod' found
deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force us-east-2-prod
error: no stack named 'us-east-2-prod' found
deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack init MyCompany/us-east-2-prod
error: stack 'us-east-2-prod' already exists
deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack ls
NAME LAST UPDATE RESOURCE COUNT URL
MyCompany/us-east-2-stage* 18 minutes ago 3 <https://app.pulumi.com/MyCompany/collector-s3/us-east-2-stage>
MyCompany/us-west-2-stage 21 minutes ago 3 <https://app.pulumi.com/MyCompany/collector-s3/us-west-2-stage>
colossal-beach-47527
11/06/2019, 7:33 PMMyCompany
) the project name (from Pulumi.yaml
) and the stack name (us-east-2-prod).
stacdk rm --force ...
and getting that error, Pulumi is filling in the project name from the Pulumi.yaml
file in the current directory. I assume the name
property in the file is “collector-s3”?brave-angle-33257
11/06/2019, 7:36 PMdeploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ cat Pulumi.yaml
name: collector-s3
runtime: nodejs
description: A minimal AWS TypeScript Pulumi program
colossal-beach-47527
11/06/2019, 7:37 PMbrave-angle-33257
11/06/2019, 7:37 PMcolossal-beach-47527
11/06/2019, 7:37 PMbrave-angle-33257
11/06/2019, 7:38 PMbroad-boots-45639
11/06/2019, 7:53 PMbrave-angle-33257
11/06/2019, 7:53 PMcolossal-beach-47527
11/06/2019, 8:08 PMcollector-s3
and stack name us-east-2-prod
. So that error looks like it is “correct”.
However, the error from stack init
looks like it isn’t correct. And instead, the CLI is interpreting a 409 error code as “stack already exists” when it is actually something else. @brave-angle-33257 has the extra context there. But let me know if there is anything else that doesn’t look right.broad-boots-45639
11/06/2019, 8:09 PM