Skip to main content

aws-cfstack

Overview

Get AWS CloudFormation stack template and parameters.

Prerequisites

  • Python >= 3.6

  • aws-authenticator (https://pypi.org/project/aws-authenticator/) >= 2022.10.1.0

Required Arguments

  • Output path (to store module artifacts)

  • AWS authentication method (profile, iam, or sso)

Conditional Arguments

If authenticating with named profiles:

  • AWSCLI profile name

If authenticating with IAM acccess key credentials:

  • AWS access key id

  • AWS secret access key

If authenticating with SSO:

  • AWS account ID

  • AWS SSO Permission Set (role) name

  • AWS SSO login URL

Usage

Installation:

pip3 install aws-cfstack
# or
python3 -m pip install aws-cfstack

In Python3 authenticating with named profiles:

import aws_cfstack

aws_cfstack.get_stack(
   '</output/path>',
   'profile',
   profile_name='<profile_name>'
)

In BASH authenticating with named profiles:

python [/path/to/]aws_cfstack \
-o </output/path> \
-m profile \
-p <profile_name>

Caveat

  • This module creates files within the specified output_path.

  • All stack instances whose names start with “StackSet-” are filtered out. This module was not intended to work with stack sets, although it can easily be expanded to do so.

  • DOS line-endings (”r”) are removed from the outputs. Only Unix line-endings (”n”) are retained.

Release files for aws_cfstack 2024.1.0.0

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

Source distribution (sdist)

Source distribution for aws_cfstack 2024.1.0.0
File Size Uploaded
aws_cfstack-2024.1.0.0.tar.gz 3.0 kB Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / aws_cfstack-2024.1.0.0.tar.gz

Download URL aws_cfstack-2024.1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c790305d76389ca7af2b3313a9fc3fe89f180f9d7b0834756dbeebd52487f363
BLAKE2b-256 checksum
How to use checksums
8295b501f46714027d1d59d964b9be59099ad519b82d77d9eb9dd80b0d6650d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/5.4.109+

Release files / aws_cfstack-2024.1.0.0-py3-none-any.whl

Download URL aws_cfstack-2024.1.0.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46b3a7f45ff4c81a5c32d8a6333a599f45cd98e46cd7c2e49c3196d17bc2be1e
BLAKE2b-256 checksum
How to use checksums
1d80b77075fde87c7864f36a881ead0d900475ff4631bfd25679bf2ce4d678ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/5.4.109+

Release history Release notifications | RSS feed

This release

2024.1.0.0 This release

2 release files

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