Skip to content

Commit ad566d1

Browse files
authored
feat: add enable_private_endpoint to composer root module (#43)
* add enable_private_endpoint to composer module * add enable_private_endpoint to composer module
1 parent c3980a9 commit ad566d1

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module "composer" {
2626
composer_env_name = "composer-env-test"
2727
network = "test-network"
2828
subnetwork = "composer-subnet"
29+
enable_private_endpoint = false
2930
}
3031
```
3132

@@ -38,6 +39,7 @@ Functional examples are included in the
3839
| Name | Description | Type | Default | Required |
3940
|------|-------------|------|---------|:--------:|
4041
| composer\_env\_name | Name of Cloud Composer Environment | `string` | n/a | yes |
42+
| enable\_private\_endpoint | Configure public access to the cluster endpoint. | `bool` | `false` | no |
4143
| network | Network where Cloud Composer is created. | `string` | n/a | yes |
4244
| project\_id | Project ID where Cloud Composer Environment is created. | `string` | n/a | yes |
4345
| region | Region where the Cloud Composer Environment is created. | `string` | n/a | yes |

main.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
module "composer-environment" {
1818
source = "./modules/create_environment_v1"
1919

20-
project_id = var.project_id
21-
composer_env_name = var.composer_env_name
22-
region = var.region
23-
zone = var.zone
24-
network = var.network
25-
subnetwork = var.subnetwork
20+
project_id = var.project_id
21+
composer_env_name = var.composer_env_name
22+
region = var.region
23+
zone = var.zone
24+
network = var.network
25+
subnetwork = var.subnetwork
26+
enable_private_endpoint = var.enable_private_endpoint
2627
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ variable "subnetwork" {
4343
description = "Subetwork where Cloud Composer is created."
4444
type = string
4545
}
46+
47+
variable "enable_private_endpoint" {
48+
description = "Configure public access to the cluster endpoint."
49+
type = bool
50+
default = false
51+
}

0 commit comments

Comments
 (0)