aws::cloudfront-public-key

Create a CloudFront public key.

A public key is the RSA public key that CloudFront uses to verify signed URLs and signed cookies. It is referenced by a aws::cloudfront-key-group, which is in turn attached to a distribution cache behavior via its trusted-key-groups field.

Example

aws::cloudfront-public-key public-key-example
    name: "example-public-key"
    comment: "example public key"
    encoded-key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...\n-----END PUBLIC KEY-----\n"
end

Attributes

Attribute Description
name The name of the public key. 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)
encoded-key The public key, in PEM encoded format, that CloudFront uses to verify the signatures of signed URLs and signed cookies. Must be a PEM encoded public key delimited by ‘—–BEGIN PUBLIC KEY—–’ and ‘—–END PUBLIC KEY—–’. Valid values satisfy the regex: [(?s)^-----BEGIN PUBLIC KEY-----.*-----END PUBLIC KEY-----\\s*$]. (Required)
comment A comment to describe the public key.
caller-reference

A unique value that ensures that the request can’t be replayed. Generated automatically if not set.

This value is immutable once the public key has been created.

Outputs

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