Replies: 1 comment
-
Hi, from
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use service account impersonation when running terratest. Ideally, I could inject these options in the
terraform.Options
but right now, I find myself using theGOOGLE_IMPERSONATE_SERVICE_ACCOUNT
environment variable. This ... actually works great but I don't like the side-effecty nature of calling anos.Setenv
in a helper function and combining that call with theWithDevelopmentOptions
helper documented below.For context, my goal is to set up a helper method like:
To configure sane, safe development defaults to provide more paranoid controls. I want to make it easy for engineers to bootstrap their test harness without the footgun of running terratest on whatever
google_application_credentials
happens to be set to. The service account we impersonate in testing would be isolated to a specific GCP project.Tracked in ticket #110539
Beta Was this translation helpful? Give feedback.
All reactions