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.
- Reads Cloud Formation templates and Service Control Policies from specified directories and produces the AWS Control Tower manifest.yaml file.
- See https://s3.amazonaws.com/solutions-reference/customizations-for-aws-control-tower/latest/customizations-for-aws-control-tower-developer-guide.pdf
- 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.
- Run
- Clone the repo
make venv
make black
make lint
make test
make local-test
To bump version:
1. Update HISTORY.rst
2. git fetch
to fetch all tags
3. make bump-<patch-minor-major>
4. Make a release in Github and add a tag.
- Cloud Formation templates require a metadata section with the following info:
Metadata:
manifest_parameters: # can be customized with --metadata-name
name: detailed_template # Optional. Defaults to the file name. a-z, A-Z, 0-9, and "-"
description: string # Required for SCPs
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". If accounts is used, enforce only account
# IDs with --enforce-account-number-only
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]