library
turbot/gcp
OverviewPipelines
0
Triggers
0
Variables
GitHub

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

NameTypeRequiredDescriptionDefault
credstringYesThe GCP application credentials file path.default
project_idstringYesThe GCP project ID.-
key_namestringYesThe name of the KMS key.-
key_ring_namestringYesThe name of the KMS key ring.-
locationstringYesThe location of the KMS key.-
memberstringYesThe member to add to the IAM policy binding.-
rolestringYesThe IAM role to add.-

Outputs

NameDescription
kms_key_iam_policy_infoInformation about the added IAM policy binding to the KMS key.