Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can you authorize a Terraform-configured Jenkins instance running on Google Cloud VM instances to create Google Cloud resources while following Google-recommended practices for infrastructure as code automation?
A
Confirm that the Jenkins VM instance has an attached service account with the appropriate Identity and Access Management (IAM) permissions.
B
Use the Terraform module so that Secret Manager can retrieve credentials.
C
Create a dedicated service account for the Terraform instance. Download and copy the secret key value to the GOOGLE_CREDENTIALS environment variable on the Jenkins server.
D
Add the gcloud auth application-default login command as a step in Jenkins before running the Terraform commands.