1 Answer
- Newest
- Most votes
- Most comments
1
I figured out the solution that I was looking for. Instead of using Maven profiles one could use environment variables by the --context key=value option with the cdk deploy command and then get this value in the code:
String myValue = (String)this.getNode().tryGetContext("value");
This way, no need to modify cdk.json file.
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago

Anyone there could help please ?