Skip to content

Infrastructure as code using Terraform and Ansible

Notifications You must be signed in to change notification settings

naesheim/AnsiForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creates a EC2 instance in AWS with NGINX including:

  • VPC
  • loadbalancer
  • Elastic IP

run terraform terraform plan terraform apply

echo out elastic ip

echo "${terraform output eip}" >> ansible/hosts

add and run nginx with ansible

ansible-playbook -i ansible/hosts ansible/bootstrap.yml -u ec2-user

check nginx server is running

curl "${terraform output elb_dns_name}"

About

Infrastructure as code using Terraform and Ansible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published