Teardown

Overview

It is recommended to delete all the resources those are not in use anymore to save the cost.

Delete resources created by CloudFormation template

Console:

  1. Log into the Cost Optimization Member Account created in AWS Account Setup.

  2. Search for cloud formation in AWS console and select CloudFormation from Services. Section6 CloudFormation

  3. Select Alpha-Team-Resources (or the Stack name you have chosen while deplying resources for team Alpha) and click on Delete. Section6 DeleteAlphaTeamResources

  4. Click on Delete stack. Section6 DeleteAlphaTeamStack

  5. Similarly select Beta-Team-Resources (or the Stack name you have chosen while deplying resources for team Beta) and click on Delete. Section6 DeleteAlphaTeamStack

  6. Click on Delete stack. Section6 DeleteAlphaTeamStack

    Note - This will delete all the resources created as part CloudFormation template and will take up to 15 mins to complete.

Delete cost category

Console:

  1. Log into Management Account created in AWS Account Setup.

  2. Search for billing in AWS console and select Billing from Services or open the AWS Billing console at https://console.aws.amazon.com/billing/ Section6 DeleteAlphaTeamStack

  3. In the navigation pane, choose Cost categories. Section6 DeleteAlphaTeamStack

  4. Choose cost by department and click on Delete to delete the category. Section6 DeleteAlphaTeamStack

  5. Similarly choose cost by team and click on Delete. Section6 DeleteAlphaTeamStack

Deactivate user defined tags

Console:

  1. In the navigation pane, choose Cost allocation tags. Section6 DeleteAlphaTeamStack

  2. Under User-defined cost allocation tags select CostCentre, Department, ProjectName and TeamName as Tag key values to de-activate the tags. Click Deactivate. Section6 DeleteAlphaTeamStack

Delete cost reports

Console:

  1. Search for cost explorer in AWS console, choose AWS Cost Explorer. Section6 CostExplorer

  2. In the navigation pane on the left, choose Reports. Section6 NavigateReports

  3. Select three cost reports under Reports section by the names cost report by teams, cost report by department and cost report by team alpha. Click on Delete to delete the reports. Section6 DeleteAlphaTeamStack

Now that you have completed the lab, if you have implemented this knowledge in your environment, you should re-evaluate the questions in the Well-Architected tool. This lab specifically helps you with COST03-BP03 - “Establish organization metrics” COST03-BP04 - “Configure billing and cost management tools” COST03-BP05 - “Add organization information to cost and usage” COST03-BP06 - “Allocate costs based on workload metrics”