Files
DetectionLab/AWS/Terraform/Pre-Built_AMIs.md
2020-06-14 18:45:18 -07:00

1.4 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/Terraform/terraform.tfvars.example to /DetectionLab/Terraform/terraform.tfvars
  4. In terraform.tfvars, provide overrides for the variables specified in variables.tf
  5. From the /DetectionLab/Terraform directory, run terraform init to setup the initial Terraform configuration
  6. Run terraform apply to begin the provisioning process

DetectionLab - Terraform