![](/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.