Skip to content

jsosulska/tf-wavelength

Repository files navigation

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

About

We trying to make some Wavelength

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages