All Projects → startup-systems → Terraform Ansible Example

startup-systems / Terraform Ansible Example

Licence: mit
Terraform+Ansible Example

Labels

Projects that are alternatives of or similar to Terraform Ansible Example

Terraform Aws Asg
Terraform AWS Auto Scaling Stack
Stars: ✭ 58 (-12.12%)
Mutual labels:  hcl
Kubestack Aws
Kubernetes cluster on CoreOS with Terraform
Stars: ✭ 61 (-7.58%)
Mutual labels:  hcl
Terraform Modules
Reusable Terraform modules
Stars: ✭ 63 (-4.55%)
Mutual labels:  hcl
Terraform Lessons
Source Code for Course "Terraform From Beginner to Professional"
Stars: ✭ 60 (-9.09%)
Mutual labels:  hcl
Terraform Kubernetes
Terraform module for provisioning AWS resources to run a Kubernetes cluster
Stars: ✭ 61 (-7.58%)
Mutual labels:  hcl
Ha Sap Terraform Deployments
Automated SAP/HA Deployments in Public/Private Clouds
Stars: ✭ 61 (-7.58%)
Mutual labels:  hcl
Terraform Google Managed Instance Group
Modular Google Compute Engine managed instance group for Terraform.
Stars: ✭ 57 (-13.64%)
Mutual labels:  hcl
Tf aws rds
[DEPRECATED] Use https://github.com/terraform-aws-modules/terraform-aws-rds
Stars: ✭ 65 (-1.52%)
Mutual labels:  hcl
Terraform Rancher Ha Example
Terraform files for deploying a Rancher HA cluster in AWS
Stars: ✭ 61 (-7.58%)
Mutual labels:  hcl
Terraform Waf Owasp
Use AWS WAF at terraform to Mitigate OWASP’s Top 10 Web Application Vulnerabilities
Stars: ✭ 63 (-4.55%)
Mutual labels:  hcl
Terraform Ecs Autoscale Alb
ECS cluster with instance and service autoscaling configured and running behind an ALB with path based routing set up
Stars: ✭ 60 (-9.09%)
Mutual labels:  hcl
Terraform Kubernetes Helm
Terraform code and scripts for deploying Helm Server (Helm v2) on a Kubernetes cluster. https://www.gruntwork.io
Stars: ✭ 61 (-7.58%)
Mutual labels:  hcl
Curso Aws Com Terraform
🎦 🇧🇷 Arquivos do curso "DevOps: AWS com Terraform Automatizando sua infraestrutura" publicado na Udemy. Você pode me ajudar comprando o curso utilizando o link abaixo.
Stars: ✭ 62 (-6.06%)
Mutual labels:  hcl
Terraform Digitalocean Docker Swarm Mode
Terraform module for provisioning a Docker Swarm mode cluster on DigitalOcean
Stars: ✭ 59 (-10.61%)
Mutual labels:  hcl
Tf aws sg
[DEPRECATED] Use https://github.com/terraform-aws-modules/terraform-aws-security-group
Stars: ✭ 64 (-3.03%)
Mutual labels:  hcl
Terraform Aws Multi Az Subnets
Terraform module for multi-AZ public and private subnets provisioning
Stars: ✭ 58 (-12.12%)
Mutual labels:  hcl
Terraform Aws Waf Owasp Top 10 Rules
A Terraform module to create AWF WAF Rules for OWASP Top 10 security risks protection.
Stars: ✭ 62 (-6.06%)
Mutual labels:  hcl
Terraform Aws S3 Log Storage
This module creates an S3 bucket suitable for receiving logs from other AWS services such as S3, CloudFront, and CloudTrail
Stars: ✭ 65 (-1.52%)
Mutual labels:  hcl
Learn Aws
☁️ My journey learning Amazon Web Services
Stars: ✭ 65 (-1.52%)
Mutual labels:  hcl
Wire Server Deploy
Code to install/deploy wire-server (on kubernetes)
Stars: ✭ 63 (-4.55%)
Mutual labels:  hcl

Terraform+Ansible Example

This repository is the near-simplest example of deploying an provisioning a web server on Amazon Web Services (AWS), using Terraform and Ansible. Based on:

Details

This repository sets up:

  • A VPC
  • A subnet
  • An internet gateway
  • A security group
  • An SSH key pair
  • A publicly-accessible EC2 instance
  • Within the instance:
    • Python 2 (for Ansible)
    • Nginx

Setup

  1. Install the following locally:
  2. Set up AWS credentials in ~/.aws/credentials.
  3. Ensure you have an SSH public key at ~/.ssh/id_rsa.pub.

Usage

export AWS_DEFAULT_REGION=us-east-1
pip install -r requirements.txt

./deploy.sh

More information about the AWS environment variables. If it is successful, you should see an address printed out at the end. Visit this in your browser, and the page should say "Welcome to nginx!"

Notes

Cleanup

cd terraform
terraform destroy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].