Install the tools
pyenv install 3.8.1
pyenv local 3.8.1
brew install node
npm install -g [email protected]
Setup the project
mkdir my_python_sample
cd my_python_sample
cdk init --language python sample-app
source .env/bin/activate
pip install -r requirements.txt
Replace local app.py and my_python_sample_stack.py files with the gists
Synthesise the CloudFormation template
cdk synth
Update the code to use the following and examine the synthesised output:
- UseOriginalConstructID aspect
- reset_logical_id()
- or override_logical_id()
that's a super-clean example, thank you for summarizing this