Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info on scratch disk size and remove duplicate kms_key_self_link section #2659

Merged
merged 1 commit into from
Nov 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,15 @@ and an error is only returned when attempting to provision them. Terraform will
now report that some configs that previously appeared valid at plan time are
now invalid.

A disk with `type` `"SCRATCH"` must have `disk_type` `"local-ssd"`. For example,
A disk with `type` `"SCRATCH"` must have `disk_type` `"local-ssd"` and a size of 375GB. For example,
the following is valid:

```hcl
disk {
auto_delete = true
type = "SCRATCH"
disk_type = "local-ssd"
auto_delete = true
type = "SCRATCH"
disk_type = "local-ssd"
disk_size_gb = 375
}
```

Expand All @@ -428,12 +429,14 @@ disk {
}
```

### `kms_key_self_link` is now required on block `google_compute_instance_template.disk_encryption_key`

In an attempt to avoid allowing empty blocks in config files, `kms_key_self_link` is now
required on the `google_compute_instance_template.disk_encryption_key` block.

## Resource: `google_compute_instance_template`
```hcl
disk {
auto_delete = true
type = "SCRATCH"
disk_type = "local-ssd"
disk_size_gb = 300
}
```

### `kms_key_self_link` is now required on block `google_compute_instance_template.disk_encryption_key`

Expand Down