Python package to automatically build the AWS Control Tower Manifest given Cloud Formation templates as input.
Project description
AWS Control Tower Manifest Builder
Python package to automatically build the AWS Control Tower Manifest given Cloud Formation templates and SCPs as input.
Free software: MIT license
Documentation: https://aws-control-tower-manifest-builder.readthedocs.io.
Features
Reads Cloud Formation templates and Service Control Policies from specified directories and produces the AWS Control Tower manifest.yaml file.
Quick start
Run pip install aws-control-tower-manifest-builder
Download sample template and SCPs from S3 “Add link”. Extract to directory
- Run aws_control_tower_manifest_builder --input-cf sample_templates --input-scp sample_scp --output output_manifest
Note: the sample template includes incorrecly formatted templates.
For Developers - before pushing a branch (to be replace by tox)
Clone the repo
make venv
make black
make lint
make test
make local-test
Cloud Formation templates require a metadata section with the following info:
Metadata:
manifest_parameters:
name: detailed_template # Optional. Defaults to the file name. a-z, A-Z, 0-9, and an underscore (_).
deploy_method: stackset # Optional. All file in the template directory use "stackset" and in policy directory use "scp".
accounts: ["123456789012", "987456123989"] # Requires "accounts" and/or "organizational_unit". [0-9]{12}
organizational_units: ["dev", "prod"] # Requires "accounts" and/or "organizational_unit".
regions: ["us-east-1" , "us-east-2"] # Optional. Defaults to us-east-1.
parameters: # Optional. List of parameters [SSM, Alfred, Values]
- parameter_key: parameter1
parameter_value: value1
- parameter_key: parameter2
parameter_value: value2
export_outputs: # Optional. list of ssm parameters to store output values
- name: /org/member/test-ssm/app-id
value: $[output_ApplicationId]
History
0.3.1 (2022-03-03)
First release on PyPI.
0.4.0 (2022-03-27)
Change to mantain order, comments and support exclamation marks in Cloudformation
0.4.1 (2022-03-27)
Fix for the default region option
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 Distributions
Hashes for aws_control_tower_manifest_builder-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 579514cfdeda8c5961a8475e3445f8673116aa59741742c1057b0f4866d79929 |
|
MD5 | fe78924d06930185118a70dd8426b04c |
|
BLAKE2b-256 | 31efe7e171d7520463bda750d49546d9435549e7e23b647705d78c31c08be783 |
Hashes for aws_control_tower_manifest_builder-0.4.1-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 290b76e93fd68cf3e31c05281b9048c99b40610210e373964299389cde56feac |
|
MD5 | 83c14057e9795d8c663d98744696516c |
|
BLAKE2b-256 | b564364b4e083b21bafabd013532812036d888950bcfccdd901ea796e147985a |
Hashes for aws_control_tower_manifest_builder-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4c7135d350aec622731e2dc02bb0d6b9af17120eadeb99edbaec049336b545 |
|
MD5 | 87d41d36e492b3d7619f56468802e5c2 |
|
BLAKE2b-256 | b205593380389b2854224ddca39c88e20d4a5d71284f306484d819e72b0d83a0 |