Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I "associate an instance profile" with an environment on AWS?

I want to "associate an instance profile" with my environment (to speed up upload performance for my website) but can't find useful instructions on how anywhere in the AWS documentation (or here on SO).

How do I "associate an instance profile" with an environment on AWS?

like image 376
orome Avatar asked Jan 01 '15 18:01

orome


2 Answers

Not clear what you are trying to accomplish, but if you are look to just 'associate an instance profile', here you go:

http://docs.aws.amazon.com/IAM/latest/UserGuide/instance-profiles.html

An instance profile is a container for an IAM role. Instance profiles are used to pass role information to an Amazon EC2 instance when the instance starts. When you use the Amazon EC2 console to launch an instance with an IAM role, you can select a role to associate with the instance. In the console, the list that's displayed is actually a list of instance profile names.

If you use the AWS Management Console to create a role, the console creates an instance profile automatically and gives it the same name as the role it corresponds to. However, if you use the CLI, API, the AWS SDK, or a third-party tool to create roles and instance profiles, you create the roles and instance profiles as separate actions, and you might give them different names. In that case, you need to know the names of your instance profiles as well as the names of roles they contain so that you can choose the correct instance profile when you launch an Amazon EC2 instance.

like image 92
E.J. Brennan Avatar answered Oct 06 '22 20:10

E.J. Brennan


If you are seeing this error when trying to set up a Elastic Beanstalk environment, it could be that the IAM user does not have sufficient permissions. You should add the IAM Policy named IAMFullAccess for that user.

like image 26
user3165888 Avatar answered Oct 06 '22 18:10

user3165888