1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa