int128 / terraform-aws-nat-instance

Terraform module to provision a NAT Instance using an Auto Scaling Group and Spot Instance from $1/month
https://registry.terraform.io/modules/int128/nat-instance/aws/
Apache License 2.0
175 stars 90 forks source link

Expose an `architecture` variable to allow for `arm64` AMIs. #40

Open nick-kang opened 2 years ago

nick-kang commented 2 years ago

Exposing an architecture variable will allow you to specify arm64 AMIs.

In data "aws_ami"...

  filter {
    name   = "architecture"
    values = [var.architecture]
  }

In variables.tf...

variable "architecture" {
  type = string
  default = "x86_64"
}

Happy to submit a PR if you think this will be additive to the project.