Resource: awsCloudfrontPublicKey
Example Usage
The following example below creates a CloudFront public key.
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.cloudfrontPublicKey.CloudfrontPublicKey(this, "example", {
comment: "test public key",
encodedKey: '${file("public_key.pem")}',
name: "test_key",
});
Argument Reference
The following arguments are supported:
comment
- (Optional) An optional comment about the public key.encodedKey
- (Required) The encoded public key that you want to add to CloudFront to use with features like field-level encryption.name
- (Optional) The name for the public key. By default generated by Terraform.namePrefix
- (Optional) The name for the public key. Conflicts withname
.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
callerReference
- Internal value used by CloudFront to allow future updates to the public key configuration.etag
- The current version of the public key. For example:e2Qwruhapomqzl
.id
- The identifier for the public key. For example:k3D5Eweudccxon
.
Import
CloudFront Public Key can be imported using the id
, e.g.,