Skip to content

Python AWS CDK for setup Payer Account with MultiAccount Environments

Notifications You must be signed in to change notification settings

eu-central-1/aws-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python AWS CDK solution for bootstrapping of multi-account environments

This is a Python project, for bootstrapping initial payer account for AWS multi-account environments.

How it Works

This project uses a simple structure for sources, tooling and testing. Just execute make to see what you can do.

Current status: Under development

How to start

You will need to have Python 3.8 installed. After this you just need to call

$ make install

The initialization process also creates a virtualenv within this project, stored under the venv directory. It will also install AWS cdk command by calling npm install -g aws-cdk.

Python

It is tested with Python 3.8.x. You can use make .venv to create Python environment for this project.

To add additional dependencies, for example other CDK libraries, just add them to your setup.py file and rerun the make install command.

PyTest

Project uses PyTest for a simple testing approach. For reference visit: https://docs.pytest.org/en/latest/index.html

AWS CDK

At this point you can now synthesize the CloudFormation template for this code.

$ cdk synth

After this, use deploy command to deploy CloudFormation stack with related skill id parameter.

cdk deploy --parameters skill=amzn1.ask.skill.your-skill-guid-number

The cdk.json file tells the CDK Toolkit how to execute your app. For reference on AWS CDK visit: https://docs.aws.amazon.com/de_de/cdk

Useful CDK commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Enjoy!

Prerequisites

Local development

This is developed to support development under Mac OS X, Windows and Linux (Ubuntu, CentOS). For local testing you will need to install Python 3.8.x.

Dependencies

None (... because it is already managed by GNU make)

License

This project is licensed under the terms of the MIT license.

About

Python AWS CDK for setup Payer Account with MultiAccount Environments

Resources

Stars

Watchers

Forks

Packages

No packages published