Cloud
Destroy Cloud Stack in AWS
Destroy Cloud Stack in AWS
Tears down everything created by Deploy Cloud Stack in AWS — terminates all five stack VMs in parallel, deletes the VPC and related networking resources, deletes the keypair, and re-syncs the AWS dynamic inventory so hosts are removed from AAP.
Prerequisites
- A stack previously deployed with Deploy Cloud Stack in AWS
- AWS credential configured
Survey prompts
| Prompt | Variable | Type | Required |
|---|---|---|---|
| AWS Region | create_vm_aws_region |
multiplechoice | Yes |
- Terminates all five stack VMs in parallel
- Syncs AWS inventory so hosts are removed from AAP
- Deletes keypair
aws-test-keyand VPCaws-test-vpc(and related resources: subnet, route table, internet gateway, security group) in parallel
Note: S3 report buckets created during deploy are not deleted by this workflow.
Presenter walkthrough
- When to use: Run this at the end of a demo session or when you need to start fresh. It’s safe to run even if some VMs are already terminated.
- Launch: Select the same AWS region used for Deploy. The workflow handles everything else.
- Watch the parallel teardown: All five VMs are terminated simultaneously, then VPC and keypair cleanup happens.
See other Cloud demos
Workflow
graph LR S["🏠 Start"] S --> A S --> B S --> C S --> D S --> E A["💥 Delete aws-dc"] --> F["🔄 Sync Inventory"] B["💥 Delete aws_win1"] --> F C["💥 Delete aws-rhel9"] --> F D["💥 Delete aws-rhel10"] --> F E["💥 Delete reports"] --> F F --> G["🔑 Delete Keypair"] F --> H["🌐 Delete VPC"] style A fill:#4a1a1a,stroke:#ef4444,color:#fff style B fill:#4a1a1a,stroke:#ef4444,color:#fff style C fill:#4a1a1a,stroke:#ef4444,color:#fff style D fill:#4a1a1a,stroke:#ef4444,color:#fff style E fill:#4a1a1a,stroke:#ef4444,color:#fff style F fill:#2d1f4e,stroke:#a78bfa,color:#fff style G fill:#1e3a5f,stroke:#4a90d9,color:#fff style H fill:#1e3a5f,stroke:#4a90d9,color:#fff style S fill:#212427,stroke:#8a8d90,color:#fff