CDK NestedStack: Accessing a nested stack resource in a stack resolves to Amazon.JSII.Runtime.Deputy.AnonymousObject and cannot be casted to CfnStack #30497
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
jsii
This issue originates in jsii, or this feature must be implemented in jsii.
p3
Describe the bug
I have use case that I need to add parameters being provided to a nested stack that is created by an AWS provided EKS construct (in this case the nested stacks containing the Kubectl and resource provider lambda functions). I can find the resources in the node tree, but they cannot be casted to a
CfnStack
, they are of typeAmazon.JSII.Runtime.Deputy.AnonymousObject
and I cannot access theparameters
property of the stack. This results in having to manipulate the rendered CloudFormation template to achieve the desired outcome.Expected Behavior
Be able to access a nested stack resource and cast it to a
CfnStack
.Current Behavior
The only available type is
Amazon.JSII.Runtime.Deputy.AnonymousObject
.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.138.0
Framework Version
No response
Node.js Version
v20.9.0
OS
darwin
Language
.NET
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: