简体   繁体   English

IAM角色和实例配置文件

[英]IAM Roles and instance profile

I have a question about application access Dynamo DB tables. 我对应用程序访问Dynamo DB表有疑问。

If I create a Role to allow application to access DynamoDB tables, can I associate the role to the application instances by referencing a instance profile? 如果我创建了一个角色以允许应用程序访问DynamoDB表,是否可以通过引用实例配置文件将该角色与应用程序实例相关联?

You would assign the instance profile to the EC2 server at the time the server is created. 您将在创建服务器时将实例配置文件分配给EC2服务器。 Then any application running on that server will have the correct role to access the DynamoDB tables. 然后,在该服务器上运行的任何应用程序都将具有正确的角色来访问DynamoDB表。

Note that you can not assign a role to an EC2 instance that has already been created. 请注意,您无法将角色分配给已创建的EC2实例。 However you can modify the role after the server has started. 但是,您可以在服务器启动后修改角色。

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

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