Role

Using AWS IAM Roles from the CLI

AWS Identity and Access Management (IAM)
Most people who have used the AWS Command Line Interface (CLI) for more than a few minutes are familiar with the aws configuration command and its ability [...]

Adding and Updating the IAM Role for an EC2 Instance

Amazon EC2
It has been possible to assign an AWS Identity and Access Management (IAM) Role to an Amazon Elastic Compute Cloud (EC2) Instance at launch time for a while [...]