From aaa09e474541284b578dcda7ba7e7802d9972ad6 Mon Sep 17 00:00:00 2001 From: shuheiktgw Date: Sun, 10 Jan 2021 20:00:04 +0900 Subject: [PATCH] Add a doc for aws_cloudfront_key_group resource --- .../docs/r/cloudfront_key_group.html.markdown | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 website/docs/r/cloudfront_key_group.html.markdown diff --git a/website/docs/r/cloudfront_key_group.html.markdown b/website/docs/r/cloudfront_key_group.html.markdown new file mode 100644 index 00000000000..045fab5fe08 --- /dev/null +++ b/website/docs/r/cloudfront_key_group.html.markdown @@ -0,0 +1,42 @@ +--- +subcategory: "CloudFront" +layout: "aws" +page_title: "AWS: aws_cloudfront_key_group" +description: |- + Provides a CloudFront key group. +--- + +# Resource: aws_cloudfront_key_group + +## Example Usage + +The following example below creates a CloudFront key group. + +```hcl +resource "aws_cloudfront_public_key" "example" { + comment = "example public key" + encoded_key = file("public_key.pem") + name = "example-key" +} + +resource "aws_cloudfront_key_group" "example" { + comment = "example key group" + items = [aws_cloudfront_public_key.example.id] + name = "example-key-group" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `comment` - (Optional) A comment to describe the key group.. +* `items` - (Required) A list of the identifiers of the public keys in the key group. +* `name` - (Required) A name to identify the key group. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `etag` - The identifier for this version of the key group. +* `id` - The identifier for the key group.