Skip to content

nukdcbear/terraform-spinup-ec2-instances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published