Skip to content

jpolara2016/EC2-cluster-with-ELB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

EC2-cluster-with-ELB

This playbook can be used to provision resources in AWS. It will set up a cluster with multiple instances in each subnets, and register all newly launched instances with ELB.

Requirements:

You need Python3 & boto3 installed on you local machine.

Commands:

  1. Change the current working directory.
cd /Users/jpolara/Desktop/aws_cluster 
  1. You must replace Access & Secret key with your own keys.
export AWS_ACCESS_KEY_ID=AKIAUQLBEPfhkjhkdskVAMFPVPPC
export AWS_SECRET_ACCESS_KEY=Dhc/rLx2qfhaksjhdkasjY695/FPOMIQivRYGKqniOeqcBF1y+W

ansible-playbook -i host cluster.yml -vv

Diagram

You can launch multiple instances in multiple subnets Alt text

About

Provision EC2 cluster with ELB in VPC using Ansible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages