Skip to content

Commit

Permalink
refactor: update examples/ for v1.0 (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune authored Oct 15, 2021
1 parent b9e1dfe commit 49076eb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 39 deletions.
20 changes: 5 additions & 15 deletions examples/custom-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,18 @@ terraform {
}
}
provider "azuread" {}
provider "azurerm" {
features {}
}
provider "lacework" {}
module "az_config" {
source = "lacework/config/azure"
version = "~> 0.1"
application_name = "lacework_custom_ad_application_name"
application_identifier_uris = ["https://account.lacework.net"]
subscription_ids = ["subscription-id-1", "subscription-id-2", "subscription-id-3"]
tenant_id = "123abc12-abcd-1234-abcd-abcd12340123"
lacework_integration_name = "a custom name"
password_length = 16
key_vault_ids = [
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault1",
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault2",
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault3"
]
source = "lacework/config/azure"
version = "~> 1.0"
application_name = "lacework_custom_ad_application_name"
subscription_ids = ["subscription-id-1", "subscription-id-2", "subscription-id-3"]
lacework_integration_name = "a custom name"
}
```

Expand Down
18 changes: 4 additions & 14 deletions examples/custom-config/main.tf
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
provider "azuread" {}

provider "azurerm" {
features {}
}

provider "lacework" {}

module "az_config" {
source = "../../"
application_name = "lacework_custom_ad_application_name"
application_identifier_uris = ["https://account.lacework.net"]
subscription_ids = ["subscription-id-1", "subscription-id-2", "subscription-id-3"]
tenant_id = "123abc12-abcd-1234-abcd-abcd12340123"
lacework_integration_name = "a custom name"
password_length = 16
key_vault_ids = [
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault1",
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault2",
"/subscriptions/1234abcd-1234-abcd-a1b3-abcd12345xyz/resourceGroups/lwresourcegroup/providers/Microsoft.KeyVault/vaults/keyvault3"
]
source = "../../"
application_name = "lacework_custom_ad_application_name"
subscription_ids = ["subscription-id-1", "subscription-id-2", "subscription-id-3"]
lacework_integration_name = "a custom name"
}
4 changes: 1 addition & 3 deletions examples/default-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ terraform {
}
}
provider "azuread" {}
provider "azurerm" {
features {}
}
Expand All @@ -23,7 +21,7 @@ provider "lacework" {}
module "az_config" {
source = "lacework/config/azure"
version = "~> 0.1"
version = "~> 1.0"
}
```

Expand Down
2 changes: 0 additions & 2 deletions examples/default-config/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
provider "azuread" {}

provider "azurerm" {
features {}
}
Expand Down
4 changes: 1 addition & 3 deletions examples/management-group/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ terraform {
}
}
provider "azuread" {}
provider "azurerm" {
features {}
}
Expand All @@ -23,7 +21,7 @@ provider "lacework" {}
module "az_config" {
source = "lacework/config/azure"
version = "~> 0.1"
version = "~> 1.0"
use_management_group = true
management_group_id = "e4ef0585-9741-419d-a121-5886972c85d0"
}
Expand Down
2 changes: 0 additions & 2 deletions examples/management-group/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
provider "azuread" {}

provider "azurerm" {
features {}
}
Expand Down

0 comments on commit 49076eb

Please sign in to comment.