Resource: aws_cloudfront_field_level_encryption_profile

Provides a CloudFront Field-level Encryption Profile resource.

Example Usage

resource "aws_cloudfront_public_key" "example" {
  comment     = "test public key"
  encoded_key = file("public_key.pem")
  name        = "test_key"
}

resource "aws_cloudfront_field_level_encryption_profile" "test" {
  comment = "test comment"
  name    = "test profile"

  encryption_entities {
    items {
      public_key_id = aws_cloudfront_public_key.example.id
      provider_id   = "test provider"

      field_patterns {
        items = ["DateOfBirth"]
      }
    }
  }
}

Argument Reference

This resource supports the following arguments:

Encryption Entities

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Cloudfront Field Level Encryption Profile using the id. For example:

import {
  to = aws_cloudfront_field_level_encryption_profile.profile
  id = "K3D5EWEUDCCXON"
}

Using terraform import, import Cloudfront Field Level Encryption Profile using the id. For example:

% terraform import aws_cloudfront_field_level_encryption_profile.profile K3D5EWEUDCCXON