Skip to main content

astroctl_cloud_aws_selfHosted_cleanup

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:

  • IAM User, Group, and all managed policies
  • S3 bucket (must be emptied first — the stack will fail if bucket has objects)
  • SQS queue
  • Credentials from platform vault (best-effort)

Requires either --profile or AWS credentials in environment.

astroctl cloud aws selfHosted cleanup [flags]

Examples

# Delete stack via AWS CLI
astroctl cloud aws selfHosted cleanup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --profile admin

# Just show the aws CLI commands
astroctl cloud aws selfHosted cleanup --account-id 123456789012 --region us-west-2 \
--cluster-name prod --profile admin

Options

--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

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO