Removing constructs from a stack #4848
Labels
@aws-cdk/core
Related to core CDK functionality
guidance
Question that needs advice or information.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
The Question
I am trying to remove all auto generated
CfnOutput
constructs from my stack to save some space. I attempted to do this with an aspect, but wanted to see if there is a cleaner solution to achieve this. The question is really, how to remove children from stack's root node given a path? I found ways to add children but not removing them.Environment
Other information
I am using constructs and abstractions in the
ecs-patterns
module and noticed it auto generatesCfnOutput
constructs for my stack. I do not want them and want to be able to filter them if possible.The text was updated successfully, but these errors were encountered: