ProductDomainDeployer
role in tvlk-dev and tvlk-prod.
ProductDomainBuildManager
role in tvlk-dev.
pay-ansible-playbook
repository to local machine. See: https://github.com/traveloka/pay-ansible-playbook
pip
installed. See: https://pip.pypa.io/en/stable/installing/
virtualenv
by executing the following command: (See https://virtualenv.pypa.io/en/latest/installation.html for more information.)
pip install virtualenv
aws-cli
installed.
It’s different than using Jenkins to build things; every time you merge to master, everything will be available to you if everything goes smoothly. Merging Pull Request to master will trigger CodeBuild to build our service binary (actually, not binary, but production asset), and bake an AMI for you. AMI stands for Amazon Machine Image; it’s a pre-built machine that will be deployed to ASG instances.
To start the deployment process, initiate with the following command:
cd /path/to/pay-ansible-playbook/deployment
source virtualenv.sh
Ensure that your command line has (virtualenv-container)
prefix, indicating that the virtual environment has been successfully created. Refrain from continuing if this step failed.
Login to AWS using your Google account by executing this command and following the instructions.
aws-google-auth -p saml
payod-fe-ami-baking
from beicisb bot.
# Staging
awsudo -u deployer-stg -- ansible-playbook payod-fe/staging.yml -e ami_id=<your-AMI-id>
# Production
awsudo -u deployer-prod -- ansible-playbook payod-fe/production.yml -e ami_id=<your-AMI-id>
payod-fe
, you will see the active load balancer that serving our service. Click it.
~/.aws/config
.