Congratulations! You have completed the container orchestration lab and learnt how to deploy your containers using AWS Batch.
In Lab 3 you build and pushed your container to ECR in an automated way using CICD pipeline via CodeCommit and CodeBuild. In Lab 4 you deployed the same container using Batch.
In this section, you will clean all the resources that you created in Lab 3 and Lab 4.
After you complete the workshop, clean up your environment by following these steps:
aws cloudformation delete-stack --stack-name nextflow-batch-ce-jq --region $AWS_REGION
aws cloudformation delete-stack --stack-name nextflow-batch-jd --region $AWS_REGION
Note, it will take a few mins for the stacks to be deleted.
Navigate to the AWS CloudFormation Dashboard of the AWS Management Console and confirm that the stacks are deleted.
Navigate to Amazon S3 Dashboard of the AWS Management Console and delete the S3 bucket you created in Lab 4. Or, run the following CLI command on Cloud9.
source s3_vars
aws s3 rb s3://${BUCKET_NAME_RESULTS} --force
REPO_NAME=isc22-container
aws ecr delete-repository --repository-name $REPO_NAME --force --region $AWS_REGION
CODECOMMIT_REPO_NAME=MyDemoRepo
aws codecommit delete-repository --repository-name $CODECOMMIT_REPO_NAME --region $AWS_REGION
CODEBUILD_PROJECT_NAME=MyDemoBuild
aws codebuild delete-project --name $CODEBUILD_PROJECT_NAME --region $AWS_REGION
CODEPIPELINE_NAME=MyDemoPipeline
aws codepipeline delete-pipeline --name $CODEPIPELINE_NAME --region $AWS_REGION