aws::cloudfront-key-group

Create a CloudFront key group.

A key group references one or more aws::cloudfront-public-key resources. It is attached to a distribution cache behavior through the behavior’s trusted-key-groups field, which makes CloudFront require a valid signed URL or signed cookie for every request served by that behavior.

Example

aws::cloudfront-key-group key-group-example
    name: "example-key-group"
    comment: "example key group"
    items: [
        $(aws::cloudfront-public-key public-key-example)
    ]
end

Attributes

Attribute Description
name The name of the key group. Must be a string 1-128 characters long containing only alphanumeric characters, hyphens or underscores. Valid values satisfy the regex: [[A-Za-z0-9_-]{1,128}]. (Required)
items set The public keys that make up this key group. At least one public key is required. Minimum required items are 1. (Required)
comment A comment to describe the key group.

Outputs

Attribute Description
id The ID of the key group.
e-tag The current version (ETag value) of the key group.