-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a doc for aws_cloudfront_key_group resource
- Loading branch information
1 parent
d1e7ecb
commit aaa09e4
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |