简体   繁体   English

如何设置云形成模板的访问权限?

[英]How to set Access Permission to Cloud Formation Template?

Is it possible to set access permission to cloud formation template using IAM policies . 是否可以使用IAM策略设置对云形成模板的访问权限。 If yes how to set the access policies ? 如果是,如何设置访问策略?

If you go to IAM and search for "cloudformation" in the Policies section you will see a read-only policy called, "AWSCloudFormationReadOnlyAccess". 如果转到IAM并在“策略”部分中搜索“ cloudformation”,则将看到一个名为“ AWSCloudFormationReadOnlyAccess”的只读策略。 You can of course make you own custom policies but this is where you can restrict the use of CloudFormation. 您当然可以使自己拥有自定义策略,但这是您可以限制使用CloudFormation的地方。

For the actual templates you can use policies or a role to an S3 bucket that contains the policy template. 对于实际的模板,您可以对包含策略模板的S3存储桶使用策略或角色。

Using a combination of the two methods above you can get very granular on how CF and templates are used. 结合使用以上两种方法,您可以非常了解CF和模板的使用方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM