A react app, configured with CI/CD. Using,
Docker
Travis CI
AWS Beanstalk
- Run
docker-compose up --build
-
Update
.travis.yml
as followings,provider
, should beelasticbeanstalk
, already configured and heavy lifting by theTravis CI
region
, Where theAWS Elastic Beanstalk
is being createdapp
, ourElastic Beanstalk
app nameenv
, ourElastic Beanstalk
environment namebucket_name
, automatically generated bucket name by theElastic Beanstalk
bucket_path
, same as theapp
nameon -> branch
, on which branch code changes, we should re-deploy the code basecredentials
, to get the credentials to accessElastic Beanstalk
byTravis CI
, we have to create a new IAM user with full programmatic access toElastic Beanstalk
. For security purpose, we will use theTravis CI
environment variables to store our aws access key and secret.