Aren’t there functions to delete resources like VP...
# aws
l
Aren’t there functions to delete resources like VPC?
b
You could the AWS SDK for this, but if you want to remove a resource you remove it from your code and Pulumi will tear it (assuming it has no dependencies either in AWS or the Pulumi stack)
If you've set up the VPC within Pulumi, I wouldn't advice removing it using the SDK or the console though. That leads to pain
l
But if the resource wasn’t created by Pulumi then there’s no Pulumi way of removing it, rit?
b
You can use Pulumi to import resources into the stack and then use Pulumi to delete them after (by removing them from the code) but if those resources are not part of the Pulumi stack then Pulumi won't remove them
l
Got it!! Thanks Piers!!! 👍
👍 1