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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use service account impersonation when running terratest. Ideally, I could inject these options in the
terraform.Optionsbut right now, I find myself using theGOOGLE_IMPERSONATE_SERVICE_ACCOUNTenvironment variable. This ... actually works great but I don't like the side-effecty nature of calling anos.Setenvin a helper function and combining that call with theWithDevelopmentOptionshelper 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_credentialshappens 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