library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

Put KMS Key Policy

Puts a policy on the specified KMS key.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run aws.pipeline.put_kms_key_policy \
--arg 'region=<string>' \
--arg 'key_id=<string>' \
--arg 'policy_name=<string>' \
--arg 'policy=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = aws.pipeline.put_kms_key_policy
args = {
region = <string>
key_id = <string>
policy_name = <string>
policy = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
regionstringYesThe name of the Region.-
credstringYesName for credentials to use. If not provided, the default credentials will be used.default
key_idstringYesThe ID of the KMS key.-
policy_namestringYesThe name of the policy to attach to the KMS key.-
policystringYesThe policy to attach to the KMS key.-

Outputs

NameDescription
kms_key_policyInformation about the updated KMS key policy.