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.
answered a month ago
Relevant content
- asked 3 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
Anyone there could help please ?