Terraform provides a few methods for managing Service Accounts in GCP. This post attempts to describe how to create Service Accounts in a good manner.
The Google provider of Terraform has some mechanisms to manage Service Accounts in GCP as followings.
- [google_service_account_iam](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_service_account_iam)
- google_service_account_iam_policy
- google_servi