1 個回答
- 最新
- 最多得票
- 最多評論
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.
相關內容
- 已提問 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前