Giter Site home page Giter Site logo

terraform-google-nat-instance's Introduction

terraform-google-nat-instance

This module provisions a NAT instance in Google Cloud that lets instances in a private subnet connect to resources outside your VPC network. A route is created to send internet traffic to the NAT instance.

Features:

  • VM instance
    • IP forwarding enabled
    • Ubuntu 20.04 LTS
    • Persistent iptables
  • Route
    • 0.0.0.0/0 destination
    • 900 priority
    • Route applies to instances with network tag no-ext-ip
    • Next hop is NAT instance

Usage

module "nat" {
  source = "github.com/mscribellito/terraform-google-nat-instance"

  project_id = "your-project-id"
  region     = "your-region"
  subnetwork = "your-subnetwork-self-link"
}

Requirements

No requirements.

Providers

Name Version
google 5.27.0

Modules

Name Source Version
nat github.com/mscribellito/terraform-google-vm-instance n/a

Resources

Name Type
google_compute_route.nat resource
google_compute_image.ubuntu data source

Inputs

Name Description Type Default Required
disk_size The disk size of the NAT instance. number 20 no
disk_type The disk type of the NAT instance. string "pd-standard" no
machine_type The machine type of the NAT instance. string "e2-micro" no
name The name of the NAT instance. string "nat-instance" no
network_tags The network tags the NAT route applies to. list(string)
[
"no-ext-ip"
]
no
project_id The project to manage resources in. string n/a yes
region The region of the NAT instance. string n/a yes
route_priority The priority of the NAT route. number 900 no
subnetwork The subnetwork of the NAT instance. string n/a yes

Outputs

No outputs.

terraform-google-nat-instance's People

Contributors

mscribellito avatar github-actions[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.