Closed marcin-cto closed 3 months ago
Why do you need to access the Custom::AWSCDKCfnJsonStringify
custom resource? Can you explain more about that?
I create a vpc endpoint only when the installation_type
input parameter is private
. Otherwise, when public
installation type is chosen is fails as it cannot find essvpcessapigatewayvpce16FC46B0
. I need to add there a cloudformation condition that creates that custom resource only when the input parameter is private
.
one use-case is being able to define a custom name for the handler's role i.e. AWSCDKCfnUtilsProviderCustomResourceProviderRoleFE0EE867
Update: got around this particular use-case with iam.Role.customize_roles
Closing this issue now. Feel free to reopen if it's still relevant.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I've educated myself that CDK supports passing only simple types, when I execute the code below a new custom resource is created just for handling an array returned by
vpc_endpoint.vpc_endpoint_network_interface_ids
.This is the code that I use.
This is an additional custom resource that is produced by cdk and doesn't exist in the children structure:
Expected Behavior
I expected
Custom::AWSCDKCfnJsonStringify
to be found in the node structure.Current Behavior
The problem I have is
Custom::AWSCDKCfnJsonStringify
cannot be found in node children. It looks like it is added when python execution ends. What I want to do is to add a condition toCustom::AWSCDKCfnJsonStringify
as I createessvpcessapigatewayvpce16FC46B0
conditionally based on input parameters. As follows:How can I access
Custom::AWSCDKCfnJsonStringify
in python to add my modifications?Reproduction Steps
''
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.111.0
Framework Version
No response
Node.js Version
v18.18.2
OS
Mac OS
Language
Python
Language Version
No response
Other information
No response