ℹ️ Information: Proper resource cleanup in AWS is critical for cost management and security. This section guides you through terminating all resources created during this workshop.
⚠️ Warning: Failure to properly clean up resources may result in unexpected charges to your AWS account.
💡 Pro Tip: Consider using AWS Resource Groups or AWS CloudFormation for easier resource management and cleanup in future projects.
Note: In the next section, we will explore Amazon Elastic Container Service (Amazon ECS) and implement a CI/CD Pipeline, so we can skip some parts in the resource cleanup.
ℹ️ Information: Amazon ECR is a fully managed container registry service that makes it easy to store, manage, and deploy container images.
Follow these steps to remove your ECR repositories:
ℹ️ Information: Amazon EC2 provides resizable compute capacity in the AWS Cloud. Terminating unused instances prevents unnecessary charges.
🔒 Security Note: Security groups act as virtual firewalls to control inbound and outbound traffic. Always clean up unused security groups to maintain a secure environment.
🔒 Security Note: IAM roles provide permissions to AWS services and should be cleaned up when no longer needed to follow the principle of least privilege.
customRWECRRole
ℹ️ Information: Amazon VPC is the networking layer for your AWS resources. Deleting a VPC also removes its associated subnets, route tables, and gateway attachments.
💡 Pro Tip: Before deleting a VPC, ensure all resources within it have been terminated, including EC2 instances, RDS databases, and load balancers.
ℹ️ Information: Amazon RDS makes it easy to set up, operate, and scale relational databases in the cloud. Properly terminating RDS instances is important to avoid ongoing charges.
delete me
in the field⚠️ Warning: Deleting an RDS instance is permanent. Ensure you’ve created any necessary final snapshots if you need to preserve your data.