amazon-web-services - CloudFormation 更新策略如何运作?

标签 amazon-web-services aws-cloudformation amazon-iam aws-policies

我正在尝试使用 IAM 设置 CI/CD,以便只有特定 IAM 用户才能更新我们的Prod CloudFormation 堆栈。

但我们对 CloudFormation 上的更新策略如何工作感到困惑。

如果我的 IAM 用户只有一项策略:Prod CloudFormation 堆栈上的 Update,他是否能够编辑/更改此堆栈中的任何资源,即使他没有这些特定权限?

例如,我在该堆栈上有一个 S3 存储桶,并且我在更新时更改了它的名称,即使该用户只有更新策略,他也能够执行此操作吗?

最佳答案

If I have an IAM user who only has one policy : Update on Prod CloudFormation stack, will he be able to edit/change any resources in this stack even though he doesn't have those specific permissions?

没有。

Ref :

In addition to AWS CloudFormation actions, you can manage what AWS services and resources are available to each user. That way, you can control which resources users can access when they use AWS CloudFormation. For example, you can specify which users can create Amazon EC2 instances, terminate database instances, or update VPCs. Those same permissions are applied anytime they use AWS CloudFormation to do those actions.

关于amazon-web-services - CloudFormation 更新策略如何运作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65183263/

相关文章:

ubuntu - 连接到托管 Chef 的 Cloudformation 片段

amazon-web-services - 创建 IAM 角色时出错。 MalformedPolicyDocument : Has prohibited field Resource. Terraform

amazon-web-services - AWS S3 重定向添加斜杠和编码 & as &

amazon-web-services - 如何在 ElasticBeanstalk Cloudformation 模板中为 IAM 用户配置对 ECR 的访问权限?

amazon-web-services - 获取托管特定服务名称的 ECS 任务的 EC2 实例 ID

amazon-web-services - 如何强制 CloudFormation 使用特定的 S3 存储桶(如果存在)或创建它?

amazon-web-services - AWS API网关: Create one API for both public access and private access

amazon-web-services - AWS CDK : how do I reference cross-stack resources in same app?

amazon-web-services - Terraform - 如何为 AWS Lambda 创建 IAM 角色并部署两者?

amazon-web-services - "Invalid Principal"尝试使用角色允许从 us-gov-west-1 帐户访问商业帐户时