Resource Type definition for AWS::CloudFront::KeyGroup
The following example creates a CloudFront key group.
resource "awscc_cloudfront_key_group" "example" {
key_group_config = {
comment = "example key group"
items = [awscc_cloudfront_public_key.example.id]
name = "example-key-group"
}
}
resource "awscc_cloudfront_public_key" "example" {
public_key_config = {
caller_reference = "test-caller-reference"
encoded_key = file("public_key.pem")
name = "test_key"
comment = "test public key"
}
}
key_group_config
(Attributes) (see below for nested schema)id
(String) Uniquely identifies the resource.key_group_id
(String)last_modified_time
(String)key_group_config
Required:
items
(List of String)name
(String)Optional:
comment
(String)Import is supported using the following syntax:
$ terraform import awscc_cloudfront_key_group.example <resource ID>