Skip to content

danf425/terraform_skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

Terraform Skeleton

Skeleton to create an AWS image

SETUP:
  1. Clone this repo (where project1 is your project name):
  • git clone git@github.com:danf425/terraform_skeleton.git project1
  • cd project1
  1. Change all instances of PROJECTNAME TO your own project name:
  • find ./ -type f -exec sed -i '' -e 's/PROJECTNAME/project1/g' {} \;
  1. Change Project_Name to what you want to name the instance:
  • find ./ -type f -exec sed -i '' -e 's/Project_Name/project_1/g' {} \;
  1. Change projectname.tf name to match Project_Name above:
    • mv terraform/aws/projectname.tf terraform/aws/project1.tf
AWS TERRAFORM:
  1. If you are using Okta: - okta_aws solutions-architects
  2. Move to terraform/aws:
    • cd terraform/aws
  3. Initialize terraform:
    • terraform init
  4. Validate:
    • terraform validate
  5. Spin up instance:
    • terraform apply
  6. SSH into your instance
    • ssh -i ~/.ssh/dmontanez-aws centos@YOURPUBLICIP
  7. Destroy (if you want):
  • terraform destroy

Made:

  1. Chef Automate
  2. Jenkins (In process)

About

Modify this TF code to suit your project needs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published