How to "link instance profile" to AWS environment?

I want to “associate an instance profile” with my environment (to improve download performance for my site), but I cannot 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?

+6
source share
5 answers

It is not clear what you are trying to execute, but if you just want to "link the instance profile", here you go:

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

IAM. Amazon EC2, . Amazon EC2 IAM, , . , , .

AWS , . , API CLI, AWS SDK , , . , , , Amazon EC2.

+4

beanstalk, , IAM . IAM IAMFullAccess.

+1

AWS (. ), , . , CLI, , , , Elastic Beanstalk . .

1: . .

2: .

enter image description here

+1

, AWS Beanstalk. AWS.

  1. IAM "EC2" AWS "AWSElasticBeanstalkFullAccess" .
  2. AWS Beanstalk //. ( Web Tier, Docker python: 3-onbuild).
  3. " "> "" .
  4. " IAM", 1. ( "aws -asticbeanstalk-service-", ! !)
  5. "" " ".

AWS CLI, AWS SDK. , EC2 (, , IAM/ ) Beanstalk.

, AWSElasticBeanstalkFullAccess . AWSElasticBeanstalkFullAccess, . , , AWS, AWSElasticBeanStalk *.

- aws -asticbeanstalk-ec2-role / , .

+1

,

.. , IAM, :

aws iam create-instance-profile --instance-profile-name YOUR_INSTANCE_PROFILE_NAME

, , :

aws iam add-role-to-instance-profile --instance-profile-name YOUR_INSTANCE_PROFILE_NAME --role-name YOUR_ROLE

: aws ec2 associate-iam-instance-profile --instance-id YOUR_INSTANCE_ID --iam-instance-profile Name = "YOUR_INSTANCE_PROFILE_NAME"

, ?

.. , AWS .

+1

Source: https://habr.com/ru/post/1569629/


All Articles