AWS : New Account: Power of tagging resources — Tag the default resources. Easily identify the undeleted resources across regions

Prince Arora
May 18, 2023

Problem Statement:

  1. A newbie user created a new AWS account.
  2. Created several resources across multiple regions.
  3. Forgot to delete few resources, resulted in unexpected bill.
  4. How to proactively identify all such unterminated resources across all the regions in the account.

Solution :

  1. Use the resource groups and tag editor.
  2. This is a free AWS service.
  3. Whenever a new AWS account is created, tag all the default resources in all the regions, provided by the default VPCs, with a unique tag key/value.
  4. Do not use these tags for any other resources.

Steps to implement the solution:

1. Open the resource groups and tag editor service
2. Click the tag editor under tagging. Search for all the resources in all the regions.
3. Default resources are not tagged.
4. Select all these default resources across regions.
5. Click the add tag button.
6. Create unique tag key/tag value and assign to for these default resources
6. To search any unterminated resources, created by you, search for all the resources in all the regions, using this inital tag with value = “Not Tagged”. Make sure this tag is not used for any other resources, but kept reserved only for the default resources.
7. To search list of default resources, created by default VPCs, search for all the resources in all the regions, using this initial tag with value provided during tagging of default resources.

--

--

Prince Arora

IT professional | Technology enthusiast | Cloud | AWS | Docker | Machine Learning