1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
1
Hi there,
Values of CfnParameter
cannot be resolved at synthesis, but only at deployment, so you won't be retrieving the values during the process of compiling. If you want to get the value at synthesis, you can use CDK Runtime context. Specifically, you can set the values of context via:
-
Through the --context option to the cdk command. (These values are always strings.)
-
In the project's cdk.context.json file.
-
In the context key of the project's cdk.json file.
-
In the context key of your ~/.cdk.json file.
-
In your AWS CDK app using the construct.node.setContext() method.
Then, you can get a context value using the construct.node.tryGetContext
method.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr