From b2f27236090904a981a2fc176a1c72204a79271b Mon Sep 17 00:00:00 2001 From: Javier Palomo Almena Date: Tue, 31 Oct 2017 10:46:25 +0100 Subject: [PATCH] Add new input: Service account scopes --- google_vm_with_r53_private_dns/inputs.tf | 5 +++++ google_vm_with_r53_private_dns/main.tf | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/google_vm_with_r53_private_dns/inputs.tf b/google_vm_with_r53_private_dns/inputs.tf index 120519a..3a55183 100644 --- a/google_vm_with_r53_private_dns/inputs.tf +++ b/google_vm_with_r53_private_dns/inputs.tf @@ -43,3 +43,8 @@ variable "google_deployer_ssh_public_key" { type = "string" default = "" } + +variable "service_account_scopes" { + type = "list" + default = [] +} diff --git a/google_vm_with_r53_private_dns/main.tf b/google_vm_with_r53_private_dns/main.tf index b77a88e..27f5676 100644 --- a/google_vm_with_r53_private_dns/main.tf +++ b/google_vm_with_r53_private_dns/main.tf @@ -22,6 +22,10 @@ resource "google_compute_instance" "vm" { host_group = "${var.host_group}" ssh-keys = "${var.google_deployer_ssh_public_key}" } + + service_account { + scopes = "${var.service_account_scopes}" + } } resource "aws_route53_record" "dns-int" {