Skip to main content

Configure Terraform

You will need a terraform config file named terraform.tfvars and it should be placed in the terraform folder. It should include the following:

aws_profile = "YOUR AWS PROFILE"
aws_region = "ap-southeast-2"

igw_id = "igw-xxxxxxxxxxxxxxxxx"

vpn_security_group_id = ""

vpc_id = "ID OF THE TARGET VPC"
vpc_cidr = "CIDR BLOCK OF VPC"

private_subnet_cidr = "10.0.1.0/24"
public_subnet_cidr = "10.0.3.0/24"

ssh_public_key_path = "~/.ssh/docbox.pub"
ssh_private_key_path = "~/.ssh/docbox"

api_instance_type = "t4g.nano"
converter_instance_type = "t4g.micro"
KeyDescription
aws_profileAWS CLI profile to use when setting up infrastructure
aws_regionAWS Region to setup resources in
igw_idInternet gateway to use for public resources
vpn_security_group_idID of the security group your "Bastion" VPN is using
vpc_idID of the VPC to create resources within
vpc_cidrCIDR block of the VPC
private_subnet_cidrSubnet to use for the docbox private subnet - This must be unique and cannot be in use already
public_subnet_cidrSubnet to use for the docbox public subnet - This must be unique and cannot be in use already
ssh_public_key_pathPath to the SSH public key setup in the previous step
ssh_private_key_pathPath to the SSH private key setup in the previous step
api_instance_typeType of instance to use for the API server
converter_instance_typeType of instance to use for the office conversion server
note

Adjust this configuration according to your specific setup