Home > Blockchain >  Does anyone know where this goes in the instances?
Does anyone know where this goes in the instances?

Time:12-02

{
  "Sid": "ElasticBeanstalkHealthAccess",
  "Action": [
    "elasticbeanstalk:PutInstanceStatistics"
  ],
  "Effect": "Allow",
  "Resource": [
    "arn:aws:elasticbeanstalk:*:*:application/*",
    "arn:aws:elasticbeanstalk:*:*:environment/*"
  ]
}

CodePudding user response:

That's a part of the IAM profile for the elastic beanstalk instance.

If you choose AWSElasticBeanstalkWebTier or AWSElasticBeanstalkWorkerTier as IAM Instance profile, the ElasticBeanstalkHealthAccess permissions will be added already.

See https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html

CodePudding user response:

There are two IAM roles associated with an Elastic Beanstalk Environment:

  • Service role: used to manage the environment
  • Instance role: role assumed by the running application. It is used to provide access to other AWS services.

You need to find your instance role in IAM console and attach the permission that you see in the documentation. This will allow your application to send statistics.

  • Related