naesheim / AnsiForm

Infrastructure as code using Terraform and Ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:HCL 92.7%Language:Shell 7.3%