Cleanup

It will take a bit time to finish the cleanup

  1. Delete pipeline.

    • Open AWS CodePipeline console.
    • Select FCAJBookStoreFEPipeline pipeline.
    • Click Delete pipeline. Cleanup
    • Enter delete.
    • Click Delete. Cleanup
    • Successfully deleted FCAJBookStoreFEPipeline. Cleanup
    • Do the same for FCAJBookStorePipeline. Cleanup Cleanup Cleanup
  2. Delete CodeBuild project.

    • Open AWS CodeBuild console.
    • Select FCAJBookStoreBuildProject Build project.
    • Click Actions, then click Delete. Cleanup
    • Enter delete.
    • Click Delete. Cleanup Cleanup
  3. Delete Connection between Gitlab and AWS.

    • Open AWS CodeBuild console.
    • Click Settings on the left menu and click Connections in the dropdown.
    • Select FCAJBookStoreGitlabConnection.
    • Click Delete. Cleanup
    • Enter delete.
    • Click Delete. Cleanup Cleanup
  4. Delete codepipeline-us-east-1-… bucket.

    • Open AWS S3 console.
    • Select codepipeline-us-east-1-… bucket.
    • Click Empty. Cleanup
    • Enter permanently delete.
    • Click Empty. Cleanup Cleanup
    • Re-select codepipeline-us-east-1-… bucket.
    • Click Delete. Cleanup
    • Enter the bucket name.
    • Click Delete bucket. Cleanup Cleanup
  5. Empty and Delete other S3 buckets.

    • At the AWS S3 console.
    • Delete the fcaj-book-shop-by-tranvix bucket (Empty it first).
    • Delete buckets starting with aws-sam-cli-managed-default- and fcaj-book-….
  6. Delete CloudFormation stacks.

    • Execute the below command to delete the AWS SAM application.

      sam delete --stack-name fcaj-book-store
      sam delete --stack-name aws-sam-cli-managed-default
      
    • If you have issues when deleting with command, open AWS Cloudformation console. Then, delete all stacks related to this workshop.

  7. Delete Git repository.

    Follow this documentation: Delete a Gitlab project.