本文介绍了在cdk部署期间如何跳过IAM更改确认?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CDK上部署任何需要IAM策略更新的更改时,您会收到以下消息:

When deploying any changes with the CDK that require IAM policy updates, you get the following message:

此部署将根据您当前的安全批准级别进行潜在的敏感更改

,其后是要进行的策略更改的列表,然后是确认对话框.总的来说,我认为这是一件好事,但不幸的是,这使自动化部署变得困难.

which is followed by the list of policy changes to be made and then a confirmation dialog. In general I think this is a good thing to have, but unfortunately it makes automating deployments difficult.

是否存在可以设置为跳过此确认的隐藏标志或环境变量?类似于Terraform的-自动批准标志.

Is there a hidden flag or environment variable that can be set to skip this confirmation? Something like Terraform's -auto-approve flag.

推荐答案

cdk deploy 命令上的以下标志可用于跳过此确认.

The following flag on the cdk deploy command can be used to skip this confirmation.

--require-approval never

此文档记录在此页面上.选项的完整列表也可以通过运行 cdk deploy --help

This is documented on this page. The full list of options can also be found by running cdk deploy --help

这篇关于在cdk部署期间如何跳过IAM更改确认?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 07:09