johndpope / microservice-aws-ec2-deployment

Deploying microservice-aws-demo microservice to AWS EC2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice - AWS EC2 Deployment

This project is the deployment automation of the non-containerized java microservice: microservice-java to the AWS EC2 instances.

image here

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

Deploy microservice-java

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]"

Deploy microservice-nodejs

And similarly for microservice nodejs

ansible-playbook -i hosts deploy_microservicenodejs.yml --extra-vars="...."

See section above.

About

Deploying microservice-aws-demo microservice to AWS EC2