Get AWS CloudFormation stack template and parameters.
Project description
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(
'/home/username/Desktop',
'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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws_cfstack-2022.11.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a48f86a32e87a26ae4afc45fe1f0cff65879f25a0d6157b3feef5c29bfb2a9c |
|
MD5 | 024a03e83b219b52071cfdd350767e0a |
|
BLAKE2b-256 | 012c41defe5ad75526ef958e8bc2322a424c2b325e1f11fe9d69d971fd81b94f |