-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow optional storage account network rules configuration' (#93)
* fix: default storage account network rules to 'Deny' Signed-off-by: Darren Murray <[email protected]> * fix: default storage account network rules to 'Deny' Signed-off-by: Darren Murray <[email protected]> * docs: update Readme Signed-off-by: Darren Murray <[email protected]> * fix: default storage account network rules to 'Deny' Signed-off-by: Darren Murray <[email protected]> * fix: default storage account network rules to 'Deny' Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> * fix: allow storage account network rule configuration Signed-off-by: Darren Murray <[email protected]> --------- Signed-off-by: Darren Murray <[email protected]>
- Loading branch information
1 parent
2db2053
commit f424502
Showing
6 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Integrate Azure with Lacework for Activity Log Analysis with storage account network rules | ||
|
||
The following example shows configuring storage account network rules. Whenuse_storage_account_network_rules is enabled the default network rule action is set to DENY. The Terraform Caller must be added to the allowed ip rules to enable Terraform management such as subsequent terraform apply or terraform destroy. | ||
|
||
## Sample Code | ||
|
||
```hcl | ||
provider "azurerm" { | ||
features {} | ||
} | ||
provider "lacework" {} | ||
module "az_activity_log" { | ||
source = "lacework/activity-log/azure" | ||
version = "~> 2.0" | ||
use_storage_account_network_rules = true | ||
# Example of allowed user Ip addresses. Should Include the Terraform caller. | ||
storage_account_network_rule_ip_rules = ["34.208.85.38"] | ||
} | ||
``` | ||
|
||
For detailed information on integrating Lacework with Azure, see [Azure Compliance & Activity Log Integrations - Terraform From Any Supported Host](https://docs.lacework.com/onboarding/azure-compliance-and-activity-log-integrations-terraform-from-any-supported-host). | ||
|
||
For detailed information on customizing the `azurerm` provider, see [the Terraform Registry](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
provider "lacework" {} | ||
|
||
module "az_activity_log" { | ||
source = "../../" | ||
|
||
use_storage_account_network_rules = true | ||
|
||
# Example of allowed user Ip addresses. Should Include the Terraform caller. | ||
storage_account_network_rule_ip_rules = ["34.208.85.38"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
terraform { | ||
required_providers { | ||
lacework = { | ||
source = "lacework/lacework" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters