library
turbot/gcp
Get Involved
Version
Pipeline: Add IAM Policy Binding to KMS Key
This pipeline adds an IAM policy binding to a Google Cloud KMS key.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run gcp.pipeline.add_iam_policy_binding_to_kms_key \ --arg 'project_id=<string>' \ --arg 'key_name=<string>' \ --arg 'key_ring_name=<string>' \ --arg 'location=<string>' \ --arg 'member=<string>' \ --arg 'role=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = gcp.pipeline.add_iam_policy_binding_to_kms_key args = { project_id = <string> key_name = <string> key_ring_name = <string> location = <string> member = <string> role = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
conn | connection.gcp | Yes | Name of GCP connection to use. If not provided, the default GCP connection will be used. | connection.gcp.default |
project_id | string | Yes | The GCP project ID. | - |
key_name | string | Yes | The name of the KMS key. | - |
key_ring_name | string | Yes | The name of the KMS key ring. | - |
location | string | Yes | The location of the KMS key. | - |
member | string | Yes | The member to add to the IAM policy binding. | - |
role | string | Yes | The IAM role to add. | - |
Outputs
Name | Description |
---|---|
kms_key_iam_policy_info | Information about the added IAM policy binding to the KMS key. |