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 1st of January 2023.

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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

aws_close_account-0.3.2-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: aws_close_account-0.3.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for aws_close_account-0.3.2.tar.gz
Algorithm Hash digest
SHA256 7da5516e6e2a06a663ac30b97452baa6717fdb67b7d23fa1465fb8fae1f159e2
MD5 8bf6cdc0ddb298fed882dfce8ac46dec
BLAKE2b-256 8e0c8c5dbbacee5da7d1cc671ddce17d6a192931412bc437a06d249c81440357

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_close_account-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c80591b2d83bea88d9a3f8db0f0ebe38516fbd02454568aee59b013920c667d8
MD5 6f55514f554dc771dd9b87d14172e318
BLAKE2b-256 b89f2964b15832aff22e1c0d6c43dbe7bb97b9d0b1b710bedfdc658fbd018b8f

See more details on using hashes here.

Supported by

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