Coder Social home page Coder Social logo

avidhara / terraform-azurerm-nsg Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Terraform module for Azure Network Security Group

Home Page: https://registry.terraform.io/modules/avidhara/nsg/azurerm/latest

HCL 100.00%
azure network-security-groups terraform terraform-azure terraform-azurerm terraform-module terraform-modules

terraform-azurerm-nsg's Introduction

Terraform module for Azure Network Security Group

How to use it as a module

module "nsg" {
  source  = "foss-cafe/nsg/azurerm"
  version = "1.0.1"
  name                = "terraform-test-nsg"
  location            = "East US"
  resource_group_name = "terraform-test"
}

Requirements

Name Version
terraform >= 0.13.1
azurerm >= 3.0.0

Providers

Name Version
azurerm >= 3.0.0

Modules

No modules.

Resources

Name Type
azurerm_network_security_group.this resource
azurerm_network_security_rule.this resource
azurerm_subnet_network_security_group_association.this resource

Inputs

Name Description Type Default Required
associate_nsg (Optional) Do you want to associate nsg with subnet bool false no
create_nsg (Optional) Do you want ot create Network secuirty group bool true no
custom_nsg_rules (Optional) Any Custom NSG rules you want to add any {} no
location (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. string n/a yes
name (Required) Specifies the name of the network security group. Changing this forces a new resource to be created. string n/a yes
resource_group_name (Required) The name of the resource group in which to create the network security group. Changing this forces a new resource to be created. string "type" no
security_rule (Optional) List of objects representing security rules any
[
{
"access": "Allow",
"description": "Outbound 443",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
443
],
"direction": "Outbound",
"name": "outbound-443",
"priority": "100",
"protocol": "Tcp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
443
]
},
{
"access": "Allow",
"description": "Outbound 80",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
80
],
"direction": "Outbound",
"name": "outbound-80",
"priority": "101",
"protocol": "Tcp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
80
]
},
{
"access": "Allow",
"description": "Outbound 53",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
53
],
"direction": "Outbound",
"name": "outbound-53",
"priority": "102",
"protocol": "Udp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
53
]
},
{
"access": "Allow",
"description": "Inbound 443",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
443
],
"direction": "Inbound",
"name": "inbound-443",
"priority": "100",
"protocol": "Tcp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
443
]
},
{
"access": "Allow",
"description": "Inbound 80",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
80
],
"direction": "Inbound",
"name": "inbound-80",
"priority": "101",
"protocol": "Tcp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
80
]
},
{
"access": "Allow",
"description": "Inbound 53",
"destination_address_prefixes": [
"0.0.0.0/0"
],
"destination_port_ranges": [
53
],
"direction": "Inbound",
"name": "inbound-53",
"priority": "102",
"protocol": "Udp",
"source_address_prefixes": [
"0.0.0.0/0"
],
"source_port_ranges": [
53
]
}
]
no
subnet_id (Optional) The ID of the Subnet. Changing this forces a new resource to be created. string null no
tags (Optional) A mapping of tags to assign to the resource. map(string) {} no

Outputs

No outputs.

terraform-azurerm-nsg's People

Contributors

rajivreddy 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.