is there some cli way to do a "full remove", that ...
# help
a
is there some cli way to do a "full remove", that also removes potentially dangerous stuff like s3 buckets?
f
Hey @Adrian Schweizer, if you set the removal policy to
DESTROY
on the resources, they all will be removed.
a
yeah, I know that, but I was thinking about a cli flag...I usually don't want to destroy them, only sometimes
f
Ah i see. It’s a bit tricky to do this via a cli flag.
Reason being, assume the removal policy for the s3 bucket is default
RETAIN
. If you want the bucket removed, you’d have to deploy once to change the bucket’s policy to
DESTROY
, and then try to remove it.
Unless we somehow bypass CloudFormation and remove the bucket directly.
a
ah, ok