Clean up resources

  1. Access the ECS service, select the FCJ_Cluster cluster, go to Services, select FCJ_Service, then Delete service and confirm Delete.

FCJ_ws2

FCJ_ws2

  1. After deleting the service, select Delete cluster to delete the cluster, confirm and press Delete.

FCJ_ws2

FCJ_ws2

FCJ_ws2

  1. Access the CloudFormation service, confirm that all stacks with names related to FCJ_Cluster have been successfully deleted.

FCJ_ws2

  1. Access the CodePipeline service, select the FCJ_Pipeline pipeline and Delete pipeline.

FCJ_ws2

  1. Select CodeCommit on the left menu, select the FCJ_Repo repo and Delete repository.

FCJ_ws2

  1. Select CodeBuild on the left menu, select the FCJ_Build_Project project, then select Action and Delete.

FCJ_ws2

  1. Access the S3 service, select the codepipeline-… bucket and delete the FCJ_Pipeline folder. You can choose to keep this bucket to deploy other pipelines later or completely delete this bucket.

FCJ_ws2

FCJ_ws2

  1. Access the ECR service, select the fcj_image_repo repo and Delete.

FCJ_ws2

  1. Access the IAM service, go to Roles and search for codebuild, select the codebuildFCJ role and Delete.
  • Repeat deleting steps with role ecsTaskExecutionRole.
  • Repeat deleting steps with role AWSCodeDeployRoleForECS.

FCJ_ws2

  1. Access the EC2 service, go to Load balancers, select FCJ_ALB, then Actions and Delete load balancer.

FCJ_ws2

  1. Continue on the EC2 console, go to Target groups, select FCJ_TG, then Actions and Delete.

FCJ_ws2

  1. Access the VPC service, go to Subnets, select 3 subnets fcj-subnet-…, then Actions and Delete subnet.

FCJ_ws2

  1. Continue on the VPC console, go to Security groups, select FCJ_SG, then Actions and Delete security groups.

FCJ_ws2

  1. Access the CloudWatch service, go to Log groups, select group aws/codebuild/FCJ_Build_Project, then Actions and Delete log group(s).

FCJ_ws2