Skip to content

Commit

Permalink
Stop acceptance test deleting in-use service account (#10010)
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench authored Feb 20, 2024
1 parent aa4dd13 commit ef76356
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,15 @@ resource "google_workstations_workstation_cluster" "default" {
location = "us-central1"
}

# No longer explicitly used in google_workstations_workstation_config resource block below, but the
# service account needs to keep existing to allow the field to default from the API without error
resource "google_service_account" "default" {
provider = google-beta

account_id = "tf-test-my-account%{random_suffix}"
display_name = "Service Account"
}

resource "google_workstations_workstation_config" "default" {
provider = google-beta
workstation_config_id = "tf-test-workstation-config%{random_suffix}"
Expand Down Expand Up @@ -729,6 +738,15 @@ resource "google_workstations_workstation_cluster" "default" {
location = "us-central1"
}

# No longer explicitly used in google_workstations_workstation_config resource block below, but the
# service account needs to keep existing to allow the field to default from the API without error
resource "google_service_account" "default" {
provider = google-beta

account_id = "tf-test-my-account%{random_suffix}"
display_name = "Service Account"
}

resource "google_workstations_workstation_config" "default" {
provider = google-beta
workstation_config_id = "tf-test-workstation-config%{random_suffix}"
Expand Down

0 comments on commit ef76356

Please sign in to comment.