Skip to main content

Programmatically close an AWS account using Selenium

Project description

This is a simple Selenium script to close an AWS account via the web console. It can also reset the account password, in case it is not known.

Warning: This script does not ask for further confirmation - it is expressly for those that want to skip all those manual steps. So please TAKE CARE and uninstall it once you don’t need it anymore!

PyPI

Why

I am creating individual AWS accounts for my students at HM (https://hm.edu) Closing them at the end of term is boring and annoying, so I automated it.

Also see https://xkcd.com/1319/

Since the AWS Organizations now has the Close Account feature, it seems on first glance that this script is superfluous. However, closing accounts has some very tight quota (10% of the active accounts in the organization), so this script unfortunately remains relevant.

Last tested 28th of January 2025.

Requirements / Installation

This program requires an installed selenium driver to run. It was tested using the selenium driver for firefox 0.30.0 installed from https://github.com/mozilla/geckodriver/releases . The selenum driver can be selected with a command line flag.

To install aws-close-account to a virtualenv, do:

pip install aws-close-account

Usage

The Browser window waits for you to input any captchas and MFA Keys.

Quick Start:

aws-close-account my-account@example.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_close_account-0.3.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_close_account-0.3.4-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aws_close_account-0.3.4.tar.gz.

File metadata

  • Download URL: aws_close_account-0.3.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for aws_close_account-0.3.4.tar.gz
Algorithm Hash digest
SHA256 ef69cab86db79ad869cefa66aaa270b8fd11bfc64ecc32ce6e93a0ce74827b9c
MD5 7d4b5e0cf295b68c4b36e524893eb7b0
BLAKE2b-256 f0d56c05f862c4b47b0f1ebc25c7a95063c3f97d9251455ba4206a489235a33b

See more details on using hashes here.

File details

Details for the file aws_close_account-0.3.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aws_close_account-0.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24783c418bf6fcba45c5cb471d40b4bb068572797977461c70e299b53bca0eb0
MD5 289c8d583f55fe6b549ccccc79a572b7
BLAKE2b-256 277cba44107ea978affefcd61b8354960527089689193445cd6dc3eb7222608a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page