AWS Elastic Beanstalk Deployment Failed

When I try to deploy a Java web application to an Elastic Beanstalk Tomcat container, it did not execute the following error:

Service:AmazonCloudFormation, Message:TemplateURL must reference a valid S3 object to which you have access.

Pay attention to the following points:

  • Deployment was automated using Jenkins running on an EC2 server.
  • This error is not a permanent problem. Sometimes it was successfully deployed, but sometimes it failed with the error above.
+4
source share
5 answers

, , , , , IAM. , .ebextensions script, . (, Amazon , EB).

IAM Gist: https://gist.github.com/magnetikonline/5034bdbb049181a96ac9

. ​​ S3, ,

{
    "Action": [
        "s3:Get*"
    ],
    "Effect": "Allow",
    "Resource": [
        "arn:aws:s3:::elasticbeanstalk-*/*"
    ]
},

Get , , .

+4

beanstalk zip- S3 ( ).

, IAM, jenkins ( ), S3. IAM. .: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.iam.html

+1

, . . , AWS, , (STK). STS 36 . 36- , , Elastic Beanstalk, , . , STS 2 .

0

, , , . .

: AmazonCloudFormation, Message: TemplateURL S3, .

"s3:Get*" , "s3:List*".

, EB . , , Rolling (, , , ..).

IAM, : gist: IAM, Continuous Integration AWAS Elastic Beanstalk

0

. , AWS, IAM S3 , . , EB CloudFormation, S3 . "AWSElasticBeanstalkFullAccess" IAM, , , , .

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "*"
        }
    ]
}

Amazon , , !

-1

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


All Articles