Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.58 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.58 KB

Terraform Spinup EC2 Instances

Table of Contents

About

Example Terraform code to spinup EC2 instances creating Route53 records for the instance.

This example is using a NGINX Ubuntu based AMI and will interact with Venafi DevOpsACCELERATE to generate a test cert and configure the NGINX instance for https.

Requirements

System Requirements

This can be executed on either a Windows or Linux system

Must set environment variables for AWS credentials; access key and secret key and Venafi credentials; api and zone.

AWS S3 bucket for backend state storage.

Ubuntu based AMI with NGINX installed

Usage

# Clone the respository
git clone git@github.com:nukdcbear/terraform-spinup-ec2-instances.git

# cd in the directory
cd terraform-spinup-ec2-instances

# Execute Terraform
terraform init -backend-config="<AWS S3 bucket>" -backend-config="key=<tfstate path/file>"
terraform plan -out=mytfplan
terraform apply mytfplan