Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 875 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 875 Bytes

aws-infra

CSYE 6225 Assignments Karan Wadhwa NUID: 002663034

Quickstart

  1. Install aws-cli and configure credentials

  2. Initialize terraform

$ terraform init
  1. Create .tfvars file from .example.tfvars template
  2. Plan your cloud infrastructure
$ terraform plan -var-file <filename>.tfvars -var "profile=<aws-profile-name>"
  1. Create your cloud infrastructure
$ terraform apply -var-file <filename>.tfvars -var "profile=<aws-profile-name>"
  1. Destroy your cloud infrastructure
$ terraform apply -var-file <filename>.tfvars -var "profile=<aws-profile-name>"
  1. Import SSL certificate to AWS Certificate Manager
$ aws acm import-certificate --certificate fileb://Certificate.crt \
      --certificate-chain fileb://certificate_bundle.crt \
      --private-key fileb://private.key