This project is the deployment automation of the non-containerized java microservice: microservice-java to the AWS EC2 instances.
using Ansible for deployment automation
Ansible is an IT automation tool.
Assumes the EC2 instances have been provisioned on AWS as defined in microservice-aws-ec2-setup
To fetch artifact from Nexus:
e.g.
ansible-playbook -i hosts deploy_microservicejava.yml --extra-vars="VERSION=1.0.0-SNAPSHOT, REPOSITORY=NEXUS"
To fetch artifact from Artifactory:
For getting artifact from JFrog Artifactory, requires an additional variable (the API KEY) to be passed in for authenticating with Artifactory's REST API.
e.g.
ansible-playbook -i hosts deploy_microservicejava.yml --extra-vars="VERSION=1.0.0-SNAPSHOT, REPOSITORY=ARTIFACTORY, ARTIFACTORY_API_KEY=[your API KEY]"
And similarly for microservice nodejs
ansible-playbook -i hosts deploy_microservicenodejs.yml --extra-vars="...."
See section above.