AWS Tip

Best AWS, DevOps, Serverless, and more from top Medium writers .

Follow publication

Member-only story

How to decommission/delete/close the AWS account automatically ?

Ekant Mate (AWS APN Ambassador)
AWS Tip
Published in
6 min readNov 19, 2024

--

Learn how to automatically delete or close AWS accounts.

Photo by Tim Mossholder on Unsplash

Introduction:

AWS account management is crucial for organizations operating at scale. When accounts are no longer in use, automating their deletion ensures cost optimization and streamlined governance. This guide demonstrates how to automate AWS account deletion using Terraform, with a focus on accounts moved to a decommissioning (Decomm) Organizational Unit (OU).

What is AWS Account Deletion/Closure?

AWS account closure involves permanently terminating an account, releasing its associated resources, and stopping billing. This process requires careful planning to avoid unintended data loss or compliance violations.

What you need to know before closing your account

Before closing your AWS account, you should consider the following:

  • Closing your account will serve as your notice of termination of the AWS Customer Agreement for this account.
  • You don’t need to delete resources in your AWS account before closing it. However, we recommend you back up any resources or data that you want to keep. For instructions about how to back up a…

--

--

Published in AWS Tip

Best AWS, DevOps, Serverless, and more from top Medium writers .

Written by Ekant Mate (AWS APN Ambassador)

Technologist, Cloud evangelist & Solution Architect specializing in Design, DevOps, Security, Network. Expert advisor, World Tech Enthusiast, Motivational Blog.

No responses yet

What are your thoughts?