Skip to main content

atmos aws cloudformation backend delete

Permanently delete the S3 bucket referenced by the component's resolved kind: aws/s3 provision target, and every object it contains (including all versions and delete markers). Requires --force; this action cannot be undone.

Experimental
atmos aws cloudformation backend delete --help
 

Usage​

atmos aws cloudformation backend delete <component> --stack <stack> --force [options]
atmos aws cloudformation backend delete vpc -s plat-ue2-dev --force

Disambiguate when the component declares more than one kind: aws/s3 target:

atmos aws cloudformation backend delete vpc -s plat-ue2-dev --target artifacts --force

Flags​

--stack, -s (required)
Atmos stack.
--force (required)
Confirm permanent deletion. Without it, backend delete fails immediately without touching the bucket.
--target (optional)
The kind: aws/s3 provision target to use. Required when more than one is declared.
--dry-run (optional)
Resolve the component and its kind: aws/s3 target from static configuration and print what would be deleted, for example would delete bucket <name> in region <region>. It makes no AWS calls and deletes nothing. A component or stack that does not exist fails the same way the real run does.
--identity, -i (optional)
Atmos identity to authenticate with.

Behavior​

backend delete lists every object and version in the bucket, warns how many will be removed, deletes them all in batches, and finally deletes the now-empty bucket.