- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 222字
- 2021-07-09 18:18:28
Permissions and service roles
One important thing to remember about CloudFormation is that it's more or less just making API calls on your behalf. This means that CloudFormation will assume the very same permissions or role you use to execute your template. If you don't have permission to create a new hosted zone in Route 53, for example, any template you try to run that contains a new Route 53-hosted zone will fail.
On the flip side, this has created a somewhat tricky situation where anyone developing CloudFormation typically has a very elevated level of privileges, and these privileges are somewhat unnecessarily granted to CloudFormation each time a template is executed.
If my CloudFormation template contains only one resource, which is a Route 53-hosted zone, it doesn't make sense for that template to be executed with full admin privileges to my AWS account. It makes much more sense to give CloudFormation a very slim set of permissions to execute the template with, thus limiting the blast radius if a bad template were to be executed (that is, a bad copy-and-paste operation resulting in deleted resources).
Thankfully, service roles have recently been introduced, and you can now define an IAM role and tell CloudFormation to use this role when your stack is being executed, giving you a much safer space to play in.
- Microsoft Dynamics CRM Customization Essentials
- 大數(shù)據(jù)導(dǎo)論:思維、技術(shù)與應(yīng)用
- 工業(yè)機器人技術(shù)及應(yīng)用
- 永磁同步電動機變頻調(diào)速系統(tǒng)及其控制(第2版)
- 學(xué)會VBA,菜鳥也高飛!
- OpenStack Cloud Computing Cookbook
- 傳感器與新聞
- Machine Learning with Apache Spark Quick Start Guide
- 計算機與信息技術(shù)基礎(chǔ)上機指導(dǎo)
- Dreamweaver CS6精彩網(wǎng)頁制作與網(wǎng)站建設(shè)
- 工業(yè)自動化技術(shù)實訓(xùn)指導(dǎo)
- 單片機技能與實訓(xùn)
- 單片機C51應(yīng)用技術(shù)
- 歐姆龍PLC應(yīng)用系統(tǒng)設(shè)計實例精解
- 工業(yè)機器人基礎(chǔ)