EC2 instances

running EB

Docker container

RDS

Jenkins

on EC2

Elastic Beanstalk (EB)

xxxxx-dockercfg

S3 bucket

Docker Trusted Registry

 

get DTR

credentials

docker

push

get DTR

credentials

docker

pull

Role: myapp-beanstalk-instance-profile

Policies:

  -- AWSElasticBeanstalkMulticontainerDocker

  -- AWSElasticBeanstalkWorkerTier

  -- AWSElasticBeanstalkWebTier

  -- DockerCfgReadPolicy

Role: jenkins-role

Policies:

  -- AWSElasticBeanstalkMulticontainerDocker

  -- AWSElasticBeanstalkWorkerTier

  -- AWSElasticBeanstalkWebTier

  -- AWSElasticBeanstalkFullAccess

  -- DockerCfgReadPolicy

  -- myapp-db-backup-permissions

 

xxxxx-myapp

S3 bucket

create

snapshot

store

db export

EB

deploy

EB command

& control