How to skip IAM change confirmation during a cdk deploy?

白昼怎懂夜的黑 提交于 2021-01-28 05:24:15

问题


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

This deployment will make potentially sensitive changes according to your current security approval level

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.

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


回答1:


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

--require-approval never

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



来源:https://stackoverflow.com/questions/61937339/how-to-skip-iam-change-confirmation-during-a-cdk-deploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!