Skip to content

Commit

Permalink
[Terraform]: Make zone required in google_composer_environment.node_c…
Browse files Browse the repository at this point in the history
…onfig (#1327)

Merged PR #1327.
  • Loading branch information
rileykarson authored and modular-magician committed Feb 1, 2019
1 parent 2711686 commit ef2dcff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ func resourceComposerEnvironment() *schema.Resource {
Schema: map[string]*schema.Schema{
"zone": {
Type: schema.TypeString,
Computed: true,
Optional: true,
Required: true,
ForceNew: true,
DiffSuppressFunc: compareSelfLinkOrResourceName,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,27 +167,19 @@ The `config` block supports:
The `node_config` block supports:

* `zone` -
(Optional)
(Required)
The Compute Engine zone in which to deploy the VMs running the
Apache Airflow software, specified as the zone name or
relative resource name (e.g. "projects/{project}/zones/{zone}"). Must belong to the enclosing environment's project
and region.

If both zone and machineType are specified, machineType must belong to this zone. If neither is specified, the service
will pick default values in the specified resource's region. If only one of zone or machineType is specified, the
location information from the specified field will be used for the location-unspecified field.

* `machine_type` -
(Optional)
The Compute Engine machine type used for cluster instances,
specified as a name or relative resource name. For example:
"projects/{project}/zones/{zone}/machineTypes/{machineType}". Must belong to the enclosing environment's project and
region/zone.

If both zone and machineType are specified, machineType must belong to this zone. If neither is specified, the service
will pick default values in the specified resource's region. If only one of zone or machineType is specified, the
location information from the specified field will be used for the location-unspecified field.

* `network` -
(Optional)
The Compute Engine network to be used for machine
Expand Down

0 comments on commit ef2dcff

Please sign in to comment.