astroctl cloud aws selfHosted cleanup
Delete CloudFormation stack created by setup
Synopsis
Delete the CloudFormation stack and all resources created by 'astroctl cloud aws selfHosted setup'.
This deletes:
Terminal
- IAM User, Group, and all managed policies
- S3 bucket, after every object version and delete marker in it is deleted
(if the bucket cannot be emptied, cleanup stops before deleting the stack)
- SQS queue
- The credentials stored in AstroPulse for the cluster; when they cannot be
removed, cleanup still deletes the stack, then exits non-zero and names
the command that removes them
Requires either --profile or AWS credentials in the environment. With --profile, every command runs as that profile: access keys in the environment are not used.
Terminal
astroctl cloud aws selfHosted cleanup [flags]
Examples
Terminal
# Delete stack via AWS CLI
astroctl cloud aws selfHosted cleanup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --profile admin
# Use the AWS credentials in the environment
astroctl cloud aws selfHosted cleanup --account-id 123456789012 --region us-west-2 \
--cluster-name prod
Options
Terminal
--account-id string AWS account ID (12 digits) (required)
--cluster-name string Cluster name used during setup (required)
-h, --help help for cleanup
--profile string AWS profile for aws CLI commands
--region string AWS region (required)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud aws selfHosted - Self-hosted cluster prerequisite management