Skip to content

Commit 2785c63

Browse files
authored
Merge pull request hashicorp#1717 from Mierdin/master
Implement 'licenses' field in compute_image resource
2 parents 95b63b9 + 5b1ef47 commit 2785c63

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/r/compute_image.html.markdown

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ resource "google_compute_image" "bootable-image" {
2222
raw_disk {
2323
source = "https://storage.googleapis.com/my-bucket/my-disk-image-tarball.tar.gz"
2424
}
25+
26+
licenses = [
27+
"https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx",
28+
]
2529
}
2630
2731
resource "google_compute_instance" "vm" {
@@ -67,6 +71,9 @@ The following arguments are supported: (Note that one of either source_disk or
6771
Changing this forces a new resource to be created. Structure is documented
6872
below.
6973

74+
* `licenses` - (Optional) A list of license URIs to apply to this image. Changing this
75+
forces a new resource to be created.
76+
7077
* `create_timeout` - (Deprecated) Configurable timeout in minutes for creating images. Default is 4 minutes.
7178

7279
The `raw_disk` block supports:

0 commit comments

Comments
 (0)