![](/img/trans.png)
[英]How can I pass (optional) parameters directly from CloudFormation template to CDK resource during CfnInclude without hardcoding the parameter list?
[英]How can I remove resources from a CfnInclude imported CloudFormation stack?
我正在使用AWS 文档中描述的方法将现有的 Cloudformation 堆栈导入 CDK。
导入的堆栈包含我想从 AWS 中删除的资源,因此我在导入的 cfnInclude 中寻找一些删除/删除方法:
const cfnInclude = new cfn_inc.CfnInclude(this, 'Template', {
templateFile: 'ExistingTemplate.json'
});
// I'm looking for a method like this:
// cfnInclude.remove('MyResourceName');
有可能以某种方式做到这一点吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.