hello, I have an issue where while I was running P...
# general
c
hello, I have an issue where while I was running Pulumi, my token to AWS expired. Now, when I run pulumi down i get errors: Type Name Status Info pulumipulumiStack pulumi-aws-fsx-dev failed 1 error - ├─ awsec2SecurityGroup sg_usw1IADOTFSd1_admin deleting failed 1 error - └─ awsec2SecurityGroup sg_usw1IADOTFSd1_client deleting failed 1 error Diagnostics: pulumipulumiStack (pulumi-aws-fsx-dev): error: update failed awsec2SecurityGroup (sg_usw1IADOTFSd1_admin): error: deleting urnpulumidev:pulumi aws fsxawsec2/securityGroupSecurityGroupsg usw1IADOTFSd1 admin 1 error occurred: * deleting Security Group (sg-056f07cf54b20e7a0): DependencyViolation: resource sg-056f07cf54b20e7a0 has a dependent object status code: 400, request id: 800e54df-0b3f-420c-b2d7-03981cbc29f8 awsec2SecurityGroup (sg_usw1IADOTFSd1_client): error: deleting urnpulumidev:pulumi aws fsxawsec2/securityGroupSecurityGroupsg usw1IADOTFSd1 client 1 error occurred: * deleting Security Group (sg-0883c1eccdee81cb9): DependencyViolation: resource sg-0883c1eccdee81cb9 has a dependent object status code: 400, request id: a63f5b30-0f81-400a-8808-e6ae6a733e28 Resources: I guess the state is messed up. How do I clean up manually?
m
Have you tried running
pulumi refresh
to regenerate state from what’s currently deployed? https://www.pulumi.com/docs/cli/commands/pulumi_refresh/
Once you do that, you should be able to destroy cleanly.
If that doesn’t work, you may need to delete some resources manually in the cloud console and refresh again, but in general you should never have to manually edit a state file.
c
thanks, i think thats is what I need to do. Manual clean up in the console, then a pulumi refresh.