Skip to content

Commit

Permalink
fix: Replace deprecated log field with enabled_log (#95)
Browse files Browse the repository at this point in the history
* fix: Replace deprecated  with

* bump azuread and azurerm minimum provider versions

* whitespace
  • Loading branch information
nkraemer-sysdig authored Sep 7, 2023
1 parent 1ef7782 commit f047e3f
Show file tree
Hide file tree
Showing 28 changed files with 83 additions and 85 deletions.
8 changes: 4 additions & 4 deletions examples/single-subscription-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ See [inputs summary](#inputs) or module module [`variables.tf`](./variables.tf)
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >=2.3.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.9.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.7.4 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.11.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 1.12.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/single-subscription-k8s/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
helm = {
source = "hashicorp/helm"
Expand Down
6 changes: 3 additions & 3 deletions examples/single-subscription/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ $ terraform apply
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.7.4 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 1.12.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/single-subscription/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
sysdig = {
source = "sysdiglabs/sysdig"
Expand Down
8 changes: 4 additions & 4 deletions examples/tenant-subscriptions-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ See [inputs summary](#inputs) or module module [`variables.tf`](./variables.tf)
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >=2.3.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.9.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.7.4 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.11.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 1.12.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/tenant-subscriptions-k8s/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
helm = {
source = "hashicorp/helm"
Expand Down
6 changes: 3 additions & 3 deletions examples/tenant-subscriptions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ $ terraform apply
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.7.4 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 1.12.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/tenant-subscriptions/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
sysdig = {
source = "sysdiglabs/sysdig"
Expand Down
6 changes: 3 additions & 3 deletions examples/trigger-events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ Notice that:
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.1.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/trigger-events/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
random = {
source = "hashicorp/random"
Expand Down
6 changes: 3 additions & 3 deletions modules/infrastructure/container_registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Deploys a container registry and creates an Event Grid to send Image Push and Ch
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.1.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion modules/infrastructure/container_registry/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
random = {
source = "hashicorp/random"
Expand Down
18 changes: 9 additions & 9 deletions modules/infrastructure/enterprise_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ Creates an enterprise application as contributor role to run the inline scanning
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azuread"></a> [azuread](#requirement\_azuread) | 2.7.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azuread"></a> [azuread](#requirement\_azuread) | >=2.41.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azuread"></a> [azuread](#provider\_azuread) | 2.7.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_azuread"></a> [azuread](#provider\_azuread) | 2.41.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |

## Modules

Expand All @@ -28,13 +28,13 @@ No modules.

| Name | Type |
|------|------|
| [azuread_application.aa](https://registry.terraform.io/providers/hashicorp/azuread/2.7.0/docs/resources/application) | resource |
| [azuread_application_password.aap](https://registry.terraform.io/providers/hashicorp/azuread/2.7.0/docs/resources/application_password) | resource |
| [azuread_service_principal.asp](https://registry.terraform.io/providers/hashicorp/azuread/2.7.0/docs/resources/service_principal) | resource |
| [azuread_service_principal_password.aspp](https://registry.terraform.io/providers/hashicorp/azuread/2.7.0/docs/resources/service_principal_password) | resource |
| [azuread_application.aa](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/application) | resource |
| [azuread_application_password.aap](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/application_password) | resource |
| [azuread_service_principal.asp](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/service_principal) | resource |
| [azuread_service_principal_password.aspp](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/service_principal_password) | resource |
| [azurerm_role_assignment.main](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment) | resource |
| [azurerm_role_definition.ard](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_definition) | resource |
| [azuread_client_config.current](https://registry.terraform.io/providers/hashicorp/azuread/2.7.0/docs/data-sources/client_config) | data source |
| [azuread_client_config.current](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/client_config) | data source |

## Inputs

Expand Down
4 changes: 2 additions & 2 deletions modules/infrastructure/enterprise_app/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
azuread = {
source = "hashicorp/azuread"
version = "2.7.0"
version = ">=2.41.0"
}
}
}
6 changes: 3 additions & 3 deletions modules/infrastructure/eventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Deploys an Event Hub and a diagnostic setting.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.1.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |

## Modules

Expand Down
7 changes: 3 additions & 4 deletions modules/infrastructure/eventhub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" {
dynamic "enabled_log" {
for_each = var.logs
content {
category = log.value
category = enabled_log.value

retention_policy {
enabled = false
Expand All @@ -79,11 +79,10 @@ resource "azurerm_monitor_aad_diagnostic_setting" "active_directory_diagnostic_s
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.ns_auth_rule.id
eventhub_name = azurerm_eventhub.aev.name

dynamic "log" {
dynamic "enabled_log" {
for_each = var.active_directory_logs
content {
category = log.value
enabled = true
category = enabled_log.value

retention_policy {
enabled = false
Expand Down
2 changes: 1 addition & 1 deletion modules/infrastructure/eventhub/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions modules/infrastructure/resource_group/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Deploys a resource group where deploy all the stack. If the name variable is not
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion modules/infrastructure/resource_group/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
# tflint-ignore: terraform_unused_required_providers
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
}
}
6 changes: 3 additions & 3 deletions modules/services/cloud-bench/trust_relationship/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_sysdig"></a> [sysdig](#requirement\_sysdig) | >= 0.5.27 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 0.7.4 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_sysdig"></a> [sysdig](#provider\_sysdig) | 1.12.0 |

## Modules

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
sysdig = {
source = "sysdiglabs/sysdig"
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-bench/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
}
}
7 changes: 4 additions & 3 deletions modules/services/cloud-connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ A **Container instance** deployment that will detect events in your infrastructu
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15.0 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.2 |
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.71.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.1.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.48.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.71.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |

## Modules

Expand Down Expand Up @@ -54,6 +54,7 @@ No modules.
| <a name="input_deploy_scanning"></a> [deploy\_scanning](#input\_deploy\_scanning) | whether scanning module is to be deployed | `bool` | `false` | no |
| <a name="input_image"></a> [image](#input\_image) | Image of the cloud-connector to deploy | `string` | `"quay.io/sysdig/cloud-connector:latest"` | no |
| <a name="input_is_organizational"></a> [is\_organizational](#input\_is\_organizational) | whether secure-for-cloud should be deployed in an organizational setup | `bool` | `false` | no |
| <a name="input_logging"></a> [logging](#input\_logging) | log level: info or debug | `string` | `"info"` | no |
| <a name="input_memory"></a> [memory](#input\_memory) | Number of CPU cores of the containers | `string` | `"1"` | no |
| <a name="input_name"></a> [name](#input\_name) | Name to be assigned to all child resources. A suffix may be added internally when required. Use default value unless you need to install multiple instances | `string` | `"sfc-connector"` | no |
| <a name="input_sysdig_secure_endpoint"></a> [sysdig\_secure\_endpoint](#input\_sysdig\_secure\_endpoint) | Sysdig's Secure API URL | `string` | `"https://secure.sysdig.com/"` | no |
Expand Down
2 changes: 1 addition & 1 deletion modules/services/cloud-connector/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
version = ">=3.71.0"
}
random = {
source = "hashicorp/random"
Expand Down
14 changes: 0 additions & 14 deletions test/fixtures/single-subscription-k8s/main.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
terraform {
required_version = ">= 0.15.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0.2"
}
sysdig = {
source = "sysdiglabs/sysdig"
version = ">= 0.5.27"
}
}
}

provider "azurerm" {
features {}
subscription_id = var.subscription_id
Expand Down
Loading

0 comments on commit f047e3f

Please sign in to comment.