Skip to main content

A tool to Create and Delete Cloudformation stacks easily. Uses credentials from your ~/.aws/credentials file via boto3

Install

$ python3 -m pip install cfntool --user

Usage

cfn [-options]

options:
    -h This help
    -m parameter list string:
          'something=somevalue,somethingelse=someothervalue'
    -P profile to use to install the stack (not required if 'all' is chosen)

required options:
    -a account name
    -n name of stack
    -p product tag
    -t full path to Cloudformation template to use

All actions are mutually exclusive
you must provide one action

Actions:
    -A install/update all accounts
    -D delete named stack
    -I install/update the named stack
    -S status of named stack

if you provide more than one action, the last one on the
command line 'wins'.

Examples

Create a stack from a yaml template:

$ cfn -I -p mytool -P myaccountalias -m myaccount -n myStackName \
    -t ~/src/mystack.yaml -m 'LambdaVersion=0.0.2,Owner=SRE'

06/03/2020 08:40:05 [INFO ]  profile: myaccountalias, account id 1234567890, account name myaccount
06/03/2020 08:40:06 [ERROR]  stack: myStackName does not exist
06/03/2020 08:40:06 [WARNI]  stack myStackName does not exist (anymore)
06/03/2020 08:40:06 [INFO ]  creating stack myStackName
06/03/2020 08:41:47 [INFO ]  Stack myStackName is CREATE_COMPLETE

Status of named stack:

$ cfn -S -P myaccountalias -n myStackName

06/03/2020 08:42:14 [INFO ]  stack myStackName is status: CREATE_COMPLETE

Delete a stack:

$ cfn -D -P myaccountalias -n myStackName

06/03/2020 08:44:39 [INFO ]  Stack myStackName is CREATE_COMPLETE
06/03/2020 08:44:39 [WARNI]  deleting stack: myStackName
06/03/2020 08:46:20 [ERROR]  stack: myStackName does not exist
06/03/2020 08:46:20 [WARNI]  stack myStackName does not exist (anymore)
06/03/2020 08:46:20 [INFO ]  stack myStackName is status: None

Metadata

Release files for cfntool 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfntool 0.2.2
File Size Uploaded Provenance
cfntool-0.2.2.tar.gz 6.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cfntool 0.2.2
File Interpreter ABI Platform
cfntool-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / cfntool-0.2.2.tar.gz

Download URL cfntool-0.2.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
210136a0f7f7d8234f8f25a9dd43195af4dd94646d5a4496221a75c6cc7347eb
BLAKE2b-256 checksum
How to use checksums
1ace0d689a47760c146674393a9a6eaac37f5a6f4790555e564fad76378e3128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.1 Linux/5.5.2-1-MANJARO

Release files / cfntool-0.2.2-py3-none-any.whl

Download URL cfntool-0.2.2-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aea5da6af4385aed7c4e4bdbb40a17023976cf3f42b3895ec6cca19dd629032
BLAKE2b-256 checksum
How to use checksums
91b9ebe59b8b1a7e6d4fc785369aab0a0d68413989ee518fdfc1e40725b3bdde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.1 Linux/5.5.2-1-MANJARO

Security for cfntool 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page