To avoid unnecessary costs, we need to clean up all resources created in this workshop. Please follow the order to ensure safe deletion.
1. Go to EC2 Console > Instances
2. Select "test-permission" instance (if exists)
3. Instance state > Terminate instance
4. Confirm termination
1. Go to EC2 Console > Auto Scaling Groups
2. Select the created ASG
3. Actions > Delete
4. Confirm deletion
5. Wait for all instances to terminate
Important: ASG must be deleted before deleting the Launch Template to ensure all instances are terminated properly.
1. Delete Application Load Balancer:
- EC2 Console > Load Balancers
- Select the created ALB
- Actions > Delete
- Confirm deletion
2. Delete Target Group:
- EC2 Console > Target Groups
- Select the created Target Group
- Actions > Delete
- Confirm deletion
1. EC2 Console > Launch Templates
2. Select the created template
3. Actions > Delete template
4. Confirm deletion
1. Delete AMI:
- EC2 Console > AMIs
- Select the created AMI
- Actions > Deregister AMI
2. Delete Snapshots:
- EC2 Console > Snapshots
- Select related snapshots
- Actions > Delete
1. S3 Console > Buckets
2. Select the created bucket
3. Empty bucket first:
- Select all objects
- Delete
4. Delete bucket:
- Actions > Delete
- Enter bucket name to confirm
1. Delete Alarms:
- CloudWatch Console > Alarms
- Select created alarms
- Actions > Delete
2. Delete Dashboards:
- CloudWatch Console > Dashboards
- Select created dashboard
- Actions > Delete dashboard
1. EC2 Console > Security Groups
2. Delete in order:
- public-ec2-sg
- alb-sg
3. Actions > Delete security groups
1. Delete IAM Role:
- IAM Console > Roles
- Find and select the role created for EC2
- Delete > Confirm deletion
2. Delete IAM Policy:
- IAM Console > Policies
- Find and select the custom policy created
- Actions > Delete
- Confirm deletion
1. EC2 Dashboard:
□ No running instances
□ No attached volumes
□ No new security groups
2. VPC Dashboard:
□ No new VPC
□ No subnets
□ No route tables
3. S3 Console:
□ No workshop bucket
4. CloudWatch:
□ No alarms
□ No dashboards
5. IAM Console:
□ No new roles
□ No new policies
Tips:
Important Notes: