Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/f3cb1ebbeb4d1593546b7287104d64c5 to your computer and use it in GitHub Desktop.
Save jrichardsz/f3cb1ebbeb4d1593546b7287104d64c5 to your computer and use it in GitHub Desktop.
AWS ElasticBeanStalk minimal configurations
  • Create the s3(in the same region) and get the bucket name . Proposed name: aws-elasticbeanstalk-zip-files
  • create a policy called _AwsS3SimpleUploadDownloadForElbApplications
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "xS3UploadDownload",
    "Effect": "Allow",
    "Action": [
      "s3:PutObject",
      "s3:GetObject"
    ],
    "Resource": "arn:aws:s3:::aws-elasticbeanstalk-zip-files/*"
  }]
}

with description like: aws elb needs to upload and download zip files to a specific s3 bucketName

  • Add the following permissions to the user
    • AmazonEC2ContainerRegistryFullAccess
    • AWSCodeCommitReadOnly
    • AdministratorAccess-AWSElasticBeanstalk
    • _AwsS3SimpleUploadDownloadForElbApplications

image

  • Login to the console and create a demo environment. This will create the elasticbeanstalk-ec2-role role
  • Add manually the AmazonEC2ContainerRegistryReadOnly to aws-elasticbeanstalk-ec2-role role

image

Resources:
HttpsListenerRule:
Type: AWS::ElasticLoadBalancingV2::ListenerRule
Properties:
Actions:
- Type: forward
TargetGroupArn:
Ref: AWSEBV2LoadBalancerTargetGroup
Conditions:
- Field: host-header
Values:
- acme.com
ListenerArn: arn:aws:elasticloadbalancin***adasd/adasd**asdasd
Priority: 56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment