Skip to content

Commit baa02ef

Browse files
feat: Add container outputs (#63)
* Add container_vm output key, and update README.md Outputs block * Updated README.md after running `make generate_docs` Co-authored-by: Morgante Pell <[email protected]>
1 parent 866ee3a commit baa02ef

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ Then perform the following commands on the root folder:
8585
| Name | Description |
8686
|------|-------------|
8787
| container | The container definition provided |
88+
| container\_vm | The complete container VM image object to use for the GCE instance |
8889
| metadata\_key | The key to assign `metadata_value` to, so container information is attached to the instance |
8990
| metadata\_value | The generated container configuration |
9091
| restart\_policy | The restart policy provided |
91-
| source\_image | The COS image to use for the GCE instance |
92-
| vm\_container\_label | The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key |
92+
| source\_image | The self_link to the COS image to use for the GCE instance. Equivalent to container_vm.self_link |
93+
| vm\_container\_label | The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key. Equivalent to container_vm.name |
9394
| vm\_container\_label\_key | The label key for the COS version deployed to the instance |
9495
| volumes | The volume definition provided |
9596

output.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ output "metadata_value" {
2525
}
2626

2727
output "source_image" {
28-
description = "The COS image to use for the GCE instance"
28+
description = "The self_link to the COS image to use for the GCE instance. Equivalent to container_vm.self_link"
2929
value = data.google_compute_image.coreos.self_link
3030
}
3131

@@ -35,10 +35,15 @@ output "vm_container_label_key" {
3535
}
3636

3737
output "vm_container_label" {
38-
description = "The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key"
38+
description = "The COS version to deploy to the instance. To be used as the value for the `vm_container_label_key` label key. Equivalent to container_vm.name"
3939
value = data.google_compute_image.coreos.name
4040
}
4141

42+
output "container_vm" {
43+
description = "The complete container VM image object to use for the GCE instance"
44+
value = data.google_compute_image.coreos
45+
}
46+
4247
output "container" {
4348
description = "The container definition provided"
4449
value = var.container

0 commit comments

Comments
 (0)