firewall-rules

GMafra/firewall-rules/gcp

Terraform Module HCL GCP

Terraform module for creating Firewall rules on Google Cloud

Install
module "firewall-rules" {
source = "GMafra/firewall-rules/gcp"
version = "1.0.0"
}
plain text: /constructs/tfmod-gmafra-firewall-rules-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

Firewall-rules module for Google Cloud Platform Creates and manages Network Firewall rules on GCP Basic usage ``hcl module firewall-module { source = "/Users/Gabriel/Terraform/Terraform-registry/terraform-gcp-firewall-rules" 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| - |No| |target_tags|A list of target tags for this firewall|List| - |No| |protocol|The name of the protocol

Inputs (6)
NameTypeDescriptionDefault
namestringName of the Firewall rule required
networkstringThe name or self_link of the network to attach this firewall to required
source_rangeslistA list of source CIDR ranges that this firewall applies to. Can't be used for EG required
target_tagslistA list of target tags for this firewall required
protocolstringThe name of the protocol to allow. This value can either be one of the following required
portslistList of ports and/or port ranges to allow. This can only be specified if the pro required
Outputs (1)
self_link — The URI of the created resource
Resources (1)
google_compute_firewall
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud GCP
★ Stars5
Forks13
Total downloads5.8k
Inputs6
Outputs1
Resources1
LicenseMIT
NamespaceGMafra
Updated