Skip to content

Commit

Permalink
Add a doc for aws_cloudfront_key_group resource
Browse files Browse the repository at this point in the history
  • Loading branch information
shuheiktgw committed Jan 17, 2021
1 parent d1e7ecb commit aaa09e4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions website/docs/r/cloudfront_key_group.html.markdown
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit aaa09e4

Please sign in to comment.