AWS cleaning resources
bin/infra destroy
. Additionally, bin/infra destroy_setup
will delete the DynamoDB table. More information on destroying infrastructure is available here.However, in circumstances that rely on insufficient AWS account rights, the deployment process may fail. In this case, bin/infra destroy_setup
will not work.Additionally, forgetting to clean resources can result in high AWS costs in a short period of time, so it’s best to check that all resources have been removed.Enter S3 in the Find Services Search Box
${prefix}
from the Terraform config file. Select a bucket and click Delete button. Confirm the deletion. Continue for all related buckets.
Select each instance and click Delete. Confirm and repeat for all instances.
Enter in CodeDeploy
Go to Applications and click on the instance name
Delete Application
Enter DynamoDB
Delete the selected table. Repeat if necessary.
Enter Route 53
Delete related hosted zones
Enter and select VPC
Select subnet to delete, right click, select Delete subnet and confirm deletion.
Select route table to delete, right click, select Delete Route Table and confirm deletion.
Select internet gateway to detach, right click, select Detach from VPC and confirm.
Select DHCP Option Sets, select set, right click, select Delete DHCP options set and confirm
Select Network ACLs, select ACL to delete, right click, select Delete network ACL and confirm
Go to Security Groups, select security group, right click, select Delete security group, confirm
Select Your VPCs, select correct VPC, right click, select Delete VPC and confirm
Select RDS
Go to Subnet Groups, select the subnet to delete, click the Delete button and confirm
Go to Databases, select the DB to delete, click the Actions menu and select Delete.