如何为Amazon EC2创建IAM角色? [英] How can I create IAM Roles for Amazon EC2?

查看:394
本文介绍了如何为Amazon EC2创建IAM角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在探索IAM角色.我想知道如何在EC2上代表用户访问角色.

I am exploring IAM Roles. I am wondering how roles can be accessed on behalf of a user on EC2.

我们非常感谢您的帮助.

Any help is highly appreciated.

谢谢

推荐答案

使用

You usually do not have to do anything special after launching an EC2 instance with an IAM Role for Amazon EC2 (I figure from your duplicate questions, that you've already done this), conceptually all you have to do are the following steps:

  1. 为EC2创建IAM角色
  2. 为该角色配置IAM策略以匹配您的用例
  3. 使用您的IAM角色启动EC2重要性
  4. 使用IAM角色识别工具,该工具会自动从角色中获取凭据
  1. create an IAM role for EC2
  2. configure IAM policies for that role to match your use case
  3. launch an EC2 isntance with your IAM role
  4. use IAM role aware tools, which will pick up the credentials from the role automatically

让我再次强调最后一个方面:您无需执行任何操作,只需在角色上配置所需的IAM凭据,并且IAM角色感知工具将从EC2实例元数据中自动提取结果凭据!

Let me stress the last aspect again: you do not need to do anything but configure the required IAM credentials on the role and IAM role aware tools will pick the resulting credentials up automatically from the EC2 instance metadata!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆