refined-king-6688
04/19/2022, 3:20 PMpulumi stack import
. I accidentally used the wrong AWS profile when creating a resource on my pulumi stack. Now pulumi thinks I’ve created a resource when it doesn’t exist in the AWS account that the stack is pointing at. I tried the following steps to fix this:
1. pulumi stack export > stack.json
2. delete references to the resources I don’t want to have in the stack
3. pulumi stack import --file stack.json
However, the pulumi stack import
doesn’t seem to import my changes? I get no interesting output after doing step 3. When trying step 1 again (after having done step 3) I still see the references to the resources that I deleted in step 2.
Has anyone else encountered this problem?victorious-church-57397
04/19/2022, 3:34 PMrefined-king-6688
04/19/2022, 3:35 PMvictorious-church-57397
04/19/2022, 3:37 PMpulumi stack import < stack.json
refined-king-6688
04/19/2022, 3:39 PMpulumi import
in the terminal… I didn’t see this as I referenced my stack using the --stack
flag. It’s been a long day haha. Sorry for the inconvenience and thanks for the fast reply!victorious-church-57397
04/19/2022, 3:41 PMechoing-dinner-19531
04/19/2022, 3:56 PMI accidentally ranOh oops. I'm surprised this didn't error out with either unrecognized flags or file format.in the terminal…pulumi import
refined-king-6688
04/19/2022, 5:01 PM