AWS Security Blog New! Attach an AWS IAM Role to an Existing Amazon EC2 Instance by Using the AWS CLI AWS Identity and Access Management (IAM) roles enable your applications running on Amazon EC2 to use temporary security credentials that AWS creates, distributes, and rotates automatically. Using temporary credentials is an IAM best practice because you do not need to maintain long-term keys on yo
![New! Attach an AWS IAM Role to an Existing Amazon EC2 Instance by Using the AWS CLI | Amazon Web Services](https://cdn-ak-scissors.b.st-hatena.com/image/square/4e909250bacff32ba70a94bb00217dcc07cb1560/height=288;version=1;width=512/https%3A%2F%2Fd2908q01vomqb2.cloudfront.net%2F22d200f8670dbdb3e253a90eee5098477c95c23d%2F2017%2F11%2F15%2F4990-IDAS_IAM_bhv3_IAM_email1.png)