1.4 KiB
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
- Ensure the prerequisites are installed:
- Configure the AWS command line utility and set up a user for Terraform via
aws configure --profile terraform
. - Create a private/public keypair to use to SSH into logger:
ssh-keygen -b 2048 -f ~/.ssh/id_logger
- Copy the file at /DetectionLab/Terraform/terraform.tfvars.example to
/DetectionLab/Terraform/terraform.tfvars
- In
terraform.tfvars
, provide overrides for the variables specified in variables.tf - From the
/DetectionLab/Terraform
directory, runterraform init
to setup the initial Terraform configuration - Run
terraform apply
to begin the provisioning process