[英]How to apply IAM Role to EC2 instance?
I launched a EC2 instance with no IAM Roles at the beginning. 我在一开始就推出了一个没有IAM角色的EC2实例。 Now I want to add a IAM Role to the EC2 instance.
现在我想向EC2实例添加IAM角色。 So how can I do this?
那我该怎么做呢?
Now you can associate with the new update AWS has come up. 现在,您可以与AWS提出的新更新相关联。
https://aws.amazon.com/blogs/security/new-attach-an-aws-iam-role-to-an-existing-amazon-ec2-instance-by-using-the-aws-cli/?sc_channel=sm&sc_campaign=launch_Identity_and_Access_888972a0&sc_publisher=fb_ln&sc_content=Roles_for_Running_Instances_CLI_SDK&sc_geo=global&sc_outcome=launches&adbsc=social_launches_20170210_69995676&adbid=1211418348895528&adbpl=fb&adbpr=153063591397681 https://aws.amazon.com/blogs/security/new-attach-an-aws-iam-role-to-an-existing-amazon-ec2-instance-by-using-the-aws-cli/?sc_channel = SM&sc_campaign = launch_Identity_and_Access_888972a0&sc_publisher = fb_ln&sc_content = Roles_for_Running_Instances_CLI_SDK&sc_geo =全球及sc_outcome =启动&adbsc = social_launches_20170210_69995676&adbid = 1211418348895528&adbpl = FB&adbpr = 153063591397681
You can do this using the aws cli. 你可以使用aws cli来做到这一点。 There's a howto blog post available here.
这里有一个howto博客帖子 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.