This repo include the followings:
aws cloudformation deploy --stack-name <elastic beanstalk stack name> --template-file elasticBeanStalk_setup.yml \
--capabilities CAPABILITY_IAM \
--parameter-overrides \
SolutionStackName="64bit Amazon Linux 2018.03 v4.14.1 running Node.js" \
NotificationEmail=<youremail@yourcom.com> \
EC2KeyName=<ec2_sshkeypair_name>
aws cloudformation describe-stacks --stack-name <stack_name> | jq ".Stacks[0].Outputs[]"
aws cloudformation deploy --stack-name <codepipeline stack name> --template-file codepipeline_template.yml \
--capabilities CAPABILITY_IAM \
--parameter-overrides \
GitHubUser=<user> \
GitHubRepo=<repo> \
GitHubBranch=<branch> \
GitHubToken=<personal token> \
ElasticBeanstalkApplication="application ID from earlier step" \
ElasticBeanstalkEnvironment="environment ID from earlier step" \
CloudWatchLogGroup=<codebuild log group> \
CloudWatchLogStream=<codebuild log stream>
After pipeline creation, there will be an initial release. Open the URL for the Elastic Beanstalk environment to verify that the application is running.
Push a change to the application repo branch, the codepipeline should execute.