Skip to content

Commit

Permalink
[internal-247] addon- Default variable pass and removed from example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol Nagpal committed Mar 31, 2023
1 parent e67cb4b commit 7077e07
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2023-03-06
### Changed
- Default variable pass and removed from example.

## [1.0.2] - 2023-02-27
### Changed
- diagnostic settings added

## [1.0.1] - 2023-01-11
### Fixed
- Updated inbound and outbound rules resource

## [1.0.0] - 2023-01-10
### Added
- Added Terraform Azure NSG module.
- Added .pre-commit-config.yml file.
14 changes: 4 additions & 10 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "vnet" {

module "subnet" {
source = "clouddrove/subnet/azure"
version = "1.0.0"
version = "1.0.2"

name = "example-subnet"
resource_group_name = module.resource_group.resource_group_name
Expand All @@ -37,17 +37,12 @@ module "subnet" {

# Subnet Configuration
subnet_prefixes = ["10.30.0.0/24"]
disable_bgp_route_propagation = false

# routes
enable_route_table = true

routes = [
{
name = "rt-app-test"
address_prefix = "0.0.0.0/0"
next_hop_type = "VirtualAppliance"
next_hop_in_ip_address = "10.20.0.4"
name = "rt-test"
address_prefix = "0.0.0.0/0"
next_hop_type = "Internet"
}
]

Expand Down Expand Up @@ -103,6 +98,5 @@ module "network_security_group" {
}
]

enable_diagnostic = true
log_analytics_workspace_id = module.log-analytics.workspace_id
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ variable "delete" {

variable "enable_diagnostic" {
type = bool
default = false
default = true
description = "Set to false to prevent the module from creating the diagnosys setting for the NSG Resource.."
}

Expand Down

0 comments on commit 7077e07

Please sign in to comment.