GithubHelp home page GithubHelp logo

data-platform-hq / terraform-azurerm-network-security-group Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 26 KB

Terraform module for creation of Azure Network Security Group

Home Page: https://registry.terraform.io/modules/data-platform-hq/network-security-group/azurerm/latest

License: Apache License 2.0

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

terraform-azurerm-network-security-group's Introduction

Azure Network Security Group Terraform module

Terraform module for creation Azure Network security group

Usage

This module provides an ability to deploy Azure Network security group, Below is an example on how to create nsg

locals {
    security_rules = [{
        name                       = "workspaces_UseOnly_databricks-worker-to-worker-inbound"
        description                = "Required for worker nodes communication within a cluster."
        priority                   = 100
        direction                  = "Inbound"
        access                     = "Allow"
        protocol                   = "*"
        source_port_range          = "*"
        destination_port_range     = "*"
        source_address_prefix      = "VirtualNetwork"
        destination_address_prefix = "VirtualNetwork"
    }]
}

module "network_security_group" {
  source  = "data-platform-hq/terraform-azurerm-network-security-group

  nsg_name        = "example-name"
  location        = "eastus"
  resource_group  = "example-rg"
  security_rules  = local.security_rules
  tags = {
    environment = "example"
  }
}

Requirements

Name Version
terraform >= 1.0.0
azurerm >= 3.40.0

Providers

Name Version
azurerm >= 3.40.0

Modules

No modules.

Resources

Name Type
azurerm_network_security_group.this resource

Inputs

Name Description Type Default Required
nsg_name Network Security Group name string n/a yes
location Specifies the supported Azure location where the resource exists string n/a yes
resource_group The name of the resource group in which resources is created string n/a yes
tags A mapping of tags to assign to the resource map(string) {} no
security_rules List of objects representing security rules
list(object({
name = string
priority = number
direction = string
access = string
protocol = string
description = optional(string)
source_port_range = optional(string)
source_port_ranges = optional(list(string))
destination_port_range = optional(string)
destination_port_ranges = optional(list(string))
source_address_prefix = optional(string)
source_address_prefixes = optional(list(string))
destination_address_prefix = optional(string)
destination_address_prefixes = optional(list(string))
}))
[] no

Outputs

Name Description
id The ID of the Network Security Group

License

Apache 2 Licensed. For more information please see LICENSE

terraform-azurerm-network-security-group's People

Contributors

owlleg6 avatar semantic-release-bot avatar

Watchers

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