Skip to content

Files

Latest commit

4c99bee · Mar 19, 2021

History

History
85 lines (64 loc) · 3.51 KB

README.md

File metadata and controls

85 lines (64 loc) · 3.51 KB

wavelength-tf-demo

A repo to manage AWS Wavelength Zones in Terraform. This module has an intentionally small scope, but comes with several features. The following lab covers the intent of the MVP. We want to achieve:

  • One Region with Multiple region-based AZ's and a wavelength availability zone.
  • Needed supporting VPC infrastructure
  • EKS cluster with
    • control plane in local az
    • worker nodes across local and wavelength az
  • Consul

Requirements

Warnings

  • wl_route_tables.tf is commented out until the issues above are fixed. You will need to create these manually via scripts or the console. This maps to lab #2, steps 3-5.

CLI Commands:

In the meantime, after this module is ran, a the following CLI commands are needed to finish setting up the WLZ.

  1. Create Custom Route Table (and export to a variable)
BOS_RT=$(aws ec2 create-route-table --vpc-id $VPC_ID  --tag-specifications 'ResourceType=route-table,Tags=[{Key=Name,Value=wl-bos-rt}]' --query 'RouteTable.RouteTableId' --output text)
  1. Create Custom Route for Wavelength Zone
aws ec2 create-route --route-table-id $BOS_RT --destination-cidr-block 0.0.0.0/0 --carrier-gateway-id $BOS_CGW
  1. Associate the Route and Route Table for the Wavelength Zone
aws ec2 associate-route-table --route-table-id $BOS_RT --subnet-id $BOS_SUBNET

Module

module "terraform-aws-wavelength-zone" {
  source     = "github.com/jsosulska/tf-wavelength"
  create_vpc = false
}

Required inputs

None