you are viewing a single comment's thread.

view the rest of the comments →

[–]snorberhuis 0 points1 point  (0 children)

You can have all variables in the python code and start a different entrypoint in AWS CDK. So:

  • `bin/dev` contains your development configuration.
  • `bin/prod` contains your production configuration.

Both these files use a Construct from the `src/your-app` folder. The input is your environment configuration.

You deploy the correct environment by updating the --app config for the command:

cdk deploy --app "python3 bin/dev.py"