How to refer an existing stack output variable value in my cdk stack?

Viewed 1064

I need to get the cloudformation stack, (which is already existing), Output variable value in my current cdk stack, how should I get that?

I tried using core.Fn.get_att?, but no much luck, can anyone help?

1 Answers

Assuming the the output has been exported by the other stack, in CDK there is Fn.importValue for importing the output:

The intrinsic function Fn::ImportValue returns the value of an output exported by another stack.

Related