Skip to content

Commit

Permalink
Add Azure create_private_endpoint param to cdp deploy module (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Enright <[email protected]>
  • Loading branch information
jimright authored Dec 7, 2023
1 parent 937b8a6 commit d7a0f0d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/terraform-cdp-deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ No resources.
| <a name="input_azure_aks_private_dns_zone_id"></a> [azure\_aks\_private\_dns\_zone\_id](#input\_azure\_aks\_private\_dns\_zone\_id) | The ID of an existing private DNS zone used for the AKS. | `string` | `null` | no |
| <a name="input_azure_cdp_gateway_subnet_names"></a> [azure\_cdp\_gateway\_subnet\_names](#input\_azure\_cdp\_gateway\_subnet\_names) | List of Azure Subnet Names CDP Endpoint Access Gateway. Required for CDP deployment on Azure. | `list(any)` | `null` | no |
| <a name="input_azure_cdp_subnet_names"></a> [azure\_cdp\_subnet\_names](#input\_azure\_cdp\_subnet\_names) | List of Azure Subnet Names for CDP Resources. Required for CDP deployment on Azure. | `list(any)` | `null` | no |
| <a name="input_azure_create_private_endpoints"></a> [azure\_create\_private\_endpoints](#input\_azure\_create\_private\_endpoints) | Flag to specify that Azure Postgres will be configured with Private Endpoint and a Private DNS Zone. | `bool` | `null` | no |
| <a name="input_azure_database_private_dns_zone_id"></a> [azure\_database\_private\_dns\_zone\_id](#input\_azure\_database\_private\_dns\_zone\_id) | The ID of an existing private DNS zone used for the database. | `string` | `null` | no |
| <a name="input_azure_datalakeadmin_identity_id"></a> [azure\_datalakeadmin\_identity\_id](#input\_azure\_datalakeadmin\_identity\_id) | Datalake Admin Managed Identity ID. Required for CDP deployment on Azure. | `string` | `null` | no |
| <a name="input_azure_idbroker_identity_id"></a> [azure\_idbroker\_identity\_id](#input\_azure\_idbroker\_identity\_id) | IDBroker Managed Identity ID. Required for CDP deployment on Azure. | `string` | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions modules/terraform-cdp-deploy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ module "cdp_on_azure" {

azure_aks_private_dns_zone_id = var.azure_aks_private_dns_zone_id
azure_database_private_dns_zone_id = var.azure_database_private_dns_zone_id
create_private_endpoints = var.azure_create_private_endpoints

proxy_config_name = var.proxy_config_name

Expand Down
1 change: 1 addition & 0 deletions modules/terraform-cdp-deploy/modules/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ resource "cdp_environments_azure_environment" "cdp_env" {
aks_private_dns_zone_id = var.azure_aks_private_dns_zone_id
database_private_dns_zone_id = var.azure_database_private_dns_zone_id
}
create_private_endpoints = var.create_private_endpoints

endpoint_access_gateway_scheme = var.endpoint_access_scheme
endpoint_access_gateway_subnet_ids = (length(var.cdp_gateway_subnet_names) > 0) ? var.cdp_gateway_subnet_names : null
Expand Down
6 changes: 6 additions & 0 deletions modules/terraform-cdp-deploy/modules/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ variable "azure_database_private_dns_zone_id" {

}

variable "create_private_endpoints" {
type = bool
description = "Azure Postgres will be configured with Private Endpoint and a Private DNS Zone."

}

variable "cdp_gateway_subnet_names" {
type = list(any)
description = "Azure Subnet Names for Endpoint Access Gateway."
Expand Down
7 changes: 7 additions & 0 deletions modules/terraform-cdp-deploy/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ variable "azure_database_private_dns_zone_id" {

}

variable "azure_create_private_endpoints" {
type = bool
description = "Flag to specify that Azure Postgres will be configured with Private Endpoint and a Private DNS Zone."

default = null
}

variable "azure_cdp_subnet_names" {
type = list(any)
description = "List of Azure Subnet Names for CDP Resources. Required for CDP deployment on Azure."
Expand Down

0 comments on commit d7a0f0d

Please sign in to comment.