awscc_cloudfront_public_key (Resource)

Resource Type definition for AWS::CloudFront::PublicKey

Example Usage

The following example creates a CloudFront public key.

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"
  }
}

Schema

Required

Read-Only

Nested Schema for public_key_config

Required:

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_cloudfront_public_key.example <resource ID>