Files
DetectionLab/AWS/Terraform/Pre-Built_AMIs.md
Chris Long e815bf2930 Update Pre-Built_AMIs.md
Update path to reflect new folder structure
2020-06-25 17:09:39 -07:00

1.5 KiB

Method 1 - Use Pre-Built AMIs

This method uses Terraform to bring DetectionLab infrastructure online by using pre-built shared AMIs.

The supplied Terraform configuration can then be used to create EC2 instances and all requisite networking components.

Prerequisites

  • A system with Terraform, AWS CLI and git installed
  • An AWS account
  • AWS credentials for Terraform

Step by step guide

  1. Ensure the prerequisites are installed:
  1. Configure the AWS command line utility and set up a user for Terraform via aws configure --profile terraform.
  2. Create a private/public keypair to use to SSH into logger: ssh-keygen -b 2048 -f ~/.ssh/id_logger
  3. Copy the file at /DetectionLab/AWS/Terraform/terraform.tfvars.example to /DetectionLab/AWS/Terraform/terraform.tfvars
  4. In terraform.tfvars, provide overrides for the variables specified in variables.tf
  5. From the /DetectionLab/AWS/Terraform directory, run terraform init to setup the initial Terraform configuration
  6. Run terraform apply to begin the provisioning process

DetectionLab - Terraform