QuestionQ119

VerifiedIntegrating applications with Google Cloud services

Your infrastructure team uses Terraform Cloud and manages Google Cloud resources with Terraform configuration files. You want to set up an infrastructure-as-code pipeline that authenticates to Google Cloud APIs. You want to use the most secure approach while minimizing configuration changes. How should you configure authentication?

Explanation

Terraform Cloud can provide an OIDC token that identifies its workspace and environment. Workload Identity Federation lets Google Cloud exchange that external identity for short-lived credentials, avoiding the security risk of importing and managing a long-lived service-account key. Google Cloud specifically documents enabling Workload Identity Federation for HCP Terraform workspaces.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!