Code Monkey home page Code Monkey logo

terraform-gcp-firewall-rules's Introduction

Firewall-rules module for Google Cloud Platform

Creates and manages Network Firewall rules on GCP

Basic usage

module firewall-module {
  source = "[email protected]:GMafra/terraform-gcp-firewall-rules.git"
  name = "ssh-rule"
  network = "test-vpc"
  protocol = "tcp"
  ports = ["ssh"]
  source_ranges = ["0.0.0.0/0"]
  target_tags = [""]
}

Variables

Name Description Type Default Required
name Name of the Firewall rule String - Yes
network The name or self_link of the network to attach this firewall to String - Yes
source_ranges A list of source CIDR ranges that this firewall applies to. Can't be used for EGRESS List - Yes
target_tags A list of target tags for this firewall (Automatically created based on vpc and rule name) List - No
protocol The name of the protocol to allow. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol number, or all String - Yes
ports List of ports and/or port ranges to allow. This can only be specified if the protocol is TCP or UDP List - Yes

Outputs

Name Description
self_link The URI of the created resource

Reference

terraform-gcp-firewall-rules's People

Contributors

genevera avatar gmafra 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.