Skip to content

Commit

Permalink
feat: add enable_private_endpoint to composer root module (#43)
Browse files Browse the repository at this point in the history
* add enable_private_endpoint to composer module

* add enable_private_endpoint to composer module
  • Loading branch information
rokity authored Apr 19, 2022
1 parent c3980a9 commit ad566d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "composer" {
composer_env_name = "composer-env-test"
network = "test-network"
subnetwork = "composer-subnet"
enable_private_endpoint = false
}
```

Expand All @@ -38,6 +39,7 @@ Functional examples are included in the
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| composer\_env\_name | Name of Cloud Composer Environment | `string` | n/a | yes |
| enable\_private\_endpoint | Configure public access to the cluster endpoint. | `bool` | `false` | no |
| network | Network where Cloud Composer is created. | `string` | n/a | yes |
| project\_id | Project ID where Cloud Composer Environment is created. | `string` | n/a | yes |
| region | Region where the Cloud Composer Environment is created. | `string` | n/a | yes |
Expand Down
13 changes: 7 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
module "composer-environment" {
source = "./modules/create_environment_v1"

project_id = var.project_id
composer_env_name = var.composer_env_name
region = var.region
zone = var.zone
network = var.network
subnetwork = var.subnetwork
project_id = var.project_id
composer_env_name = var.composer_env_name
region = var.region
zone = var.zone
network = var.network
subnetwork = var.subnetwork
enable_private_endpoint = var.enable_private_endpoint
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ variable "subnetwork" {
description = "Subetwork where Cloud Composer is created."
type = string
}

variable "enable_private_endpoint" {
description = "Configure public access to the cluster endpoint."
type = bool
default = false
}

0 comments on commit ad566d1

Please sign in to comment.