Skip to content

Commit 94d4428

Browse files
authored
Merge pull request #47 from lacework/change-default-nat-config
Change default nat config
2 parents a4fa1f5 + 9ee378d commit 94d4428

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ No modules.
115115
| <a name="input_suffix"></a> [suffix](#input\_suffix) | A string to be appended to the end of the name of all new resources. | `string` | `""` | no |
116116
| <a name="input_tags"></a> [tags](#input\_tags) | Set of tags which will be added to the resources managed by the module. | `map(string)` | `{}` | no |
117117
| <a name="input_tenant_id"></a> [tenant\_id](#input\_tenant\_id) | TenantId where LW Sidekick is deployed | `string` | `""` | no |
118-
| <a name="input_use_nat_gateway"></a> [use\_nat\_gateway](#input\_use\_nat\_gateway) | Whether to use a NAT gateway instead of public IPs on scanning instances. Defaults to `true`. | `bool` | `true` | no |
118+
| <a name="input_use_nat_gateway"></a> [use\_nat\_gateway](#input\_use\_nat\_gateway) | Whether to use a NAT gateway instead of public IPs on scanning instances. Defaults to `false`. | `bool` | `false` | no |
119119

120120
## Outputs
121121

examples/custom-vnet/main.tf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ module "lacework_azure_agentless_scanning_rg_and_vnet" {
6060
create_log_analytics_workspace = true
6161
region = local.region
6262

63-
// When using a custom vnet with the default NAT gateway (use_nat_gateway = true),
64-
// you must specify the network security group here:
65-
custom_network_security_group = azurerm_network_security_group.example.id
66-
67-
// If you want to use public IPs instead of a NAT gateway, comment out the line above
68-
// and uncomment this line:
69-
// use_nat_gateway = false
63+
// When using a custom vnet with the NAT gateway (use_nat_gateway = true),
64+
// uncomment the two lines below and specify the network security group:
65+
66+
// use_nat_gateway = true
67+
// custom_network_security_group = azurerm_network_security_group.example.id
7068
}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ variable "tags" {
6262

6363
variable "use_nat_gateway" {
6464
type = bool
65-
description = "Whether to use a NAT gateway instead of public IPs on scanning instances. Defaults to `true`."
66-
default = true
65+
description = "Whether to use a NAT gateway instead of public IPs on scanning instances. Defaults to `false`."
66+
default = false
6767
}
6868

6969
variable "custom_network" {

0 commit comments

Comments
 (0)