Skip to content

Commit

Permalink
Merge pull request #10 from bharathkkb/bug/pass-img-var
Browse files Browse the repository at this point in the history
add img family, img project, shielded_vm
  • Loading branch information
morgante authored Nov 11, 2019
2 parents d2541da + bec2ef8 commit a680241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ module "instance_template" {
email = google_service_account.bastion_host.email
scopes = var.scopes
}
enable_shielded_vm = true
startup_script = var.startup_script
enable_shielded_vm = var.shielded_vm
source_image_family = var.image_family
source_image_project = var.image_project
startup_script = var.startup_script

metadata = {
enable-oslogin = "TRUE"
Expand Down
11 changes: 8 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
* limitations under the License.
*/

variable "image" {
description = "GCE image on which to base the Bastion. This image is supported by Shielded VM"
default = "gce-uefi-images/centos-7"
variable "image_family" {
description = "Source image family for the Bastion."
default = "centos-7"
}

variable "image_project" {
description = "Project where the source image for the Bastion comes from"
default = "gce-uefi-images"
}

variable "labels" {
Expand Down

0 comments on commit a680241

Please sign in to comment.