Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualespica committed Oct 18, 2024
1 parent 8953daf commit 4a1d3ae
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 27 deletions.
28 changes: 28 additions & 0 deletions src/domains/afm-common/03_cosmosdb_afm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,31 @@ module "afm_marketplace_cosmosdb_containers" {

autoscale_settings = contains(var.afm_marketplace_cosmos_db_params.capabilities, "EnableServerless") ? null : lookup(each.value, "autoscale_settings", null)
}

# private_endpoint subresource_names analytical
# resource "azurerm_private_endpoint" "afm_cosmos_analytical_private_endpoint" {
# count = var.env_short == "d" ? 0 : 1

# name = format("%s-analytical-private-endpoint", local.project)
# location = var.location
# resource_group_name = azurerm_resource_group.afm_rg.name
# subnet_id = module.afm_marketplace_cosmosdb_snet.id

# private_dns_zone_group {
# name = "${local.project}-analytical-cosmos-private-dns-zone-group"
# private_dns_zone_ids = [data.azurerm_private_dns_zone.cosmos.id]
# }

# private_service_connection {
# name = "${local.project}-analytical-cosmos-private-service-connection"
# private_connection_resource_id = module.afm_marketplace_cosmosdb_account.id
# is_manual_connection = false
# subresource_names = ["Analytical"]
# }

# tags = var.tags

# depends_on = [
# module.afm_marketplace_cosmosdb_account
# ]
# }
6 changes: 3 additions & 3 deletions src/domains/afm-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_afm_marketplace_cosmos_db_params"></a> [afm\_marketplace\_cosmos\_db\_params](#input\_afm\_marketplace\_cosmos\_db\_params) | n/a | <pre>object({<br> kind = string<br> capabilities = list(string)<br> offer_type = string<br> server_version = string<br> consistency_policy = object({<br> consistency_level = string<br> max_interval_in_seconds = number<br> max_staleness_prefix = number<br> })<br> main_geo_location_zone_redundant = bool<br> enable_free_tier = bool<br> additional_geo_locations = list(object({<br> location = string<br> failover_priority = number<br> zone_redundant = bool<br> }))<br> private_endpoint_enabled = bool<br> public_network_access_enabled = bool<br> is_virtual_network_filter_enabled = bool<br> backup_continuous_enabled = bool<br> })</pre> | n/a | yes |
| <a name="input_afm_storage_params"></a> [afm\_storage\_params](#input\_afm\_storage\_params) | n/a | <pre>object({<br> enable_backup = optional(bool, false)<br> enabled = bool,<br> kind = string,<br> tier = string,<br> account_replication_type = string,<br> advanced_threat_protection = bool,<br> retention_days = number,<br> public_network_access_enabled = bool,<br> backup_retention_days = optional(number, 0)<br> })</pre> | <pre>{<br> "account_replication_type": "LRS",<br> "advanced_threat_protection": false,<br> "backup_retention_days": 0,<br> "enable_backup": false,<br> "enabled": false,<br> "kind": "StorageV2",<br> "public_network_access_enabled": false,<br> "retention_days": 30,<br> "tier": "Standard"<br>}</pre> | no |
| <a name="input_afm_marketplace_cosmos_db_params"></a> [afm\_marketplace\_cosmos\_db\_params](#input\_afm\_marketplace\_cosmos\_db\_params) | n/a | <pre>object({<br/> kind = string<br/> capabilities = list(string)<br/> offer_type = string<br/> server_version = string<br/> consistency_policy = object({<br/> consistency_level = string<br/> max_interval_in_seconds = number<br/> max_staleness_prefix = number<br/> })<br/> main_geo_location_zone_redundant = bool<br/> enable_free_tier = bool<br/> additional_geo_locations = list(object({<br/> location = string<br/> failover_priority = number<br/> zone_redundant = bool<br/> }))<br/> private_endpoint_enabled = bool<br/> public_network_access_enabled = bool<br/> is_virtual_network_filter_enabled = bool<br/> backup_continuous_enabled = bool<br/> })</pre> | n/a | yes |
| <a name="input_afm_storage_params"></a> [afm\_storage\_params](#input\_afm\_storage\_params) | n/a | <pre>object({<br/> enable_backup = optional(bool, false)<br/> enabled = bool,<br/> kind = string,<br/> tier = string,<br/> account_replication_type = string,<br/> advanced_threat_protection = bool,<br/> retention_days = number,<br/> public_network_access_enabled = bool,<br/> backup_retention_days = optional(number, 0)<br/> })</pre> | <pre>{<br/> "account_replication_type": "LRS",<br/> "advanced_threat_protection": false,<br/> "backup_retention_days": 0,<br/> "enable_backup": false,<br/> "enabled": false,<br/> "kind": "StorageV2",<br/> "public_network_access_enabled": false,<br/> "retention_days": 30,<br/> "tier": "Standard"<br/>}</pre> | no |
| <a name="input_application_insights_name"></a> [application\_insights\_name](#input\_application\_insights\_name) | Specifies the name of the Application Insights. | `string` | n/a | yes |
| <a name="input_cidr_subnet_afm_marketplace_cosmosdb"></a> [cidr\_subnet\_afm\_marketplace\_cosmosdb](#input\_cidr\_subnet\_afm\_marketplace\_cosmosdb) | Cosmos DB address space | `list(string)` | `null` | no |
| <a name="input_dns_zone_internal_prefix"></a> [dns\_zone\_internal\_prefix](#input\_dns\_zone\_internal\_prefix) | The dns subdomain. | `string` | `null` | no |
Expand All @@ -84,7 +84,7 @@
| <a name="input_log_analytics_workspace_resource_group_name"></a> [log\_analytics\_workspace\_resource\_group\_name](#input\_log\_analytics\_workspace\_resource\_group\_name) | The name of the resource group in which the Log Analytics workspace is located in. | `string` | n/a | yes |
| <a name="input_monitor_resource_group_name"></a> [monitor\_resource\_group\_name](#input\_monitor\_resource\_group\_name) | Monitor resource group name | `string` | n/a | yes |
| <a name="input_prefix"></a> [prefix](#input\_prefix) | n/a | `string` | n/a | yes |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(any)` | <pre>{<br> "CreatedBy": "Terraform"<br>}</pre> | no |
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `map(any)` | <pre>{<br/> "CreatedBy": "Terraform"<br/>}</pre> | no |

## Outputs

Expand Down
19 changes: 0 additions & 19 deletions src/domains/observability/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/domains/observability/env/prod/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ external_domain = "NOT_USED"
apim_dns_zone_prefix = "NOT_USED"

# observability Ingestion cfg
observability_storage_account_replication_type = "GZRS"
enable_sa_backup = true
cidr_subnet_observability_storage = ["10.3.14.0/27"]
cidr_subnet_observability_evh = ["10.3.14.32/27"]
# observability_storage_account_replication_type = "GZRS" # Standard_GZRS, Kind: StorageV2 is not available in zone.
enable_sa_backup = true
cidr_subnet_observability_storage = ["10.3.14.0/27"]
cidr_subnet_observability_evh = ["10.3.14.32/27"]
# <free>= ["10.3.14.64/27"]
# <free>= ["10.3.14.96/27"]
# <free>= ["10.3.14.128/27"]
Expand All @@ -76,7 +76,7 @@ ehns_zone_redundant = true
ehns_public_network_access = false
ehns_private_endpoint_is_present = true

eventhubs_04 = [
eventhubs = [
{
name = "gec-ingestion-bundles-dl"
partitions = 32
Expand Down

0 comments on commit 4a1d3ae

Please sign in to comment.