GCP service account for Pods
This module facilitates the creation of a GCP service account assigned with the “workLoadIdentityUser” role, along with other necessary roles. Additionally, it establishes a Kubernetes service account that assumes the identity of the GCP service account. This Kubernetes service account is meant to be associated with the pods within the GKE cluster.
This module performs the following actions:
Create a GCP service account assigned with “workLoadIdentityUser” role.
Add a list of IAM roles for the GCP service account.
Create a kubernetes service account associated with the GCP service account.
Requirements
Name |
Version |
|---|---|
>= 1.0 |
|
>= 4.75.0 |
|
>= 2.21.1 |
Providers
Name |
Version |
|---|---|
>= 4.75.0 |
|
>= 2.21.1 |
Modules
No modules.
Resources
Name |
Type |
|---|---|
resource |
|
resource |
|
resource |
|
resource |
|
data source |
Inputs
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
To enable automatic mounting of the Kubernetes service account token. |
|
|
no |
|
Namespace within which name of the service account must be unique. |
|
|
no |
|
Name of service account name. |
|
n/a |
yes |
|
A list of roles to be added to the created service account. |
|
|
no |
Outputs
Name |
Description |
|---|---|
Name of Kubernetes service account. |
|
Namespace within which name of the service account must be unique. |
|
The e-mail address of the GCP service account. |
|
The ID of the GCP service account. |
|
Name of GCP service account. |
|
The IAM roles associated with the GCP service account. |