Elastic Beanstalk SQSD Error on worker start

前端 未结 1 1047
孤独总比滥情好
孤独总比滥情好 2021-01-25 02:12

I\'ve deployed a nodejs worker. However whenever I try to start it, it gets red and this error is showned: ERROR Instance: i-6eef007a Module: AWSEBAutoScalingGroup ConfigSet:

相关标签:
1条回答
  • 2021-01-25 02:37

    You need to have an IAM role with the appropriate permissions to create an Elastic Beanstalk worker environment.

    The IAM role should have the following permissions:

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "QueueAccess",
          "Action": [
            "sqs:ChangeMessageVisibility",
            "sqs:DeleteMessage",
            "sqs:ReceiveMessage"
          ],
          "Effect": "Allow",
          "Resource": "*"
        },
        {
          "Sid": "MetricsAccess",
          "Action": [
            "cloudwatch:PutMetricData"
          ],
          "Effect": "Allow",
          "Resource": "*"
        }
      ]
    }               
    

    Detailed documentation: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.iam.roles.aeb.html#AWSHowTo.iam.policies.actions.worker

    For debugging you can ssh to the instance and look at /var/log/aws-sqsd/default.log to see the logs. If you want to avoid ssh'ing to the instance you can also snapshot logs from the AWS Console as shown here.

    You can read more about worker role environments here.

    0 讨论(0)
提交回复
热议问题