library
turbot/aws
Get Involved
Version
Pipeline: 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
Name | Type | Required | Description | Default |
---|---|---|---|---|
region | string | Yes | The name of the Region. | - |
conn | connection.aws | Yes | Name of AWS connection to use. If not provided, the default AWS connection will be used. | connection.aws.default |
key_id | string | Yes | The ID of the KMS key. | - |
policy_name | string | Yes | The name of the policy to attach to the KMS key. | - |
policy | string | Yes | The policy to attach to the KMS key. | - |
Outputs
Name | Description |
---|---|
kms_key_policy | Information about the updated KMS key policy. |