EC2 - IAM roles lab Flashcards
Role Types
AWS Service Roles, Role for Cross-Account Access, Role for Identity Provider Access
When provisioning EC2 instance with IAM role, where do you select the role?
Configure Instance Details (IAM role)
When you first use CLI…
You need to configure AWS credentials using access key ID and secret access key, Region
Can you assign a role to an EC2 instance after launching it?
Not using console, but can using CLI. You can also modify a role
The only way to modify a role attached to an EC2 instance is…
attach a policy
If you delete a role attached to the EC2 instance
The role is gone. You cannot add a new role; you must terminate and launch a new instance with desired role
Which is more secure, using roles or storing your access key and secret access key on EC2 instances?
Roles; they are also easier to manage
T/F: Roles are universal, you can use them in any region.
True