AWS Amazon SES Identity Policy

This page shows how to write Terraform for Amazon SES Identity Policy and write them securely.

aws_ses_identity_policy (Terraform)

The Identity Policy in Amazon SES can be configured in Terraform with the resource name aws_ses_identity_policy. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

wildcard_principal.tf#L9
resource "aws_ses_identity_policy" "ses_allow_without_wildcard" {
  identity = "arn:aws:ses:us-west-2:123456789012:identity/example.com"
  name     = "example"
  policy   = <<EOF
{
    "Version": "2012-10-17",
wildcard_principal.tf#L9
resource "aws_ses_identity_policy" "ses_allow_without_wildcard" {
  identity = "arn:aws:ses:us-west-2:123456789012:identity/example.com"
  name     = "example"
  policy   = <<EOF
{
    "Version": "2012-10-17",
ses.tf#L21
resource "aws_ses_identity_policy" "personal" {
  identity = aws_ses_email_identity.personal.arn
  name     = "personal"
  policy   = data.aws_iam_policy_document.personal.json
ses_email.tf#L19
resource "aws_ses_identity_policy" "main_email_policy" {
  identity = aws_ses_email_identity.main_email.arn
  name     = "main_email_policy"
  policy   = data.aws_iam_policy_document.main_email_policy_document.json
  provider = aws.us
}
ses.tf#L17
resource "aws_ses_identity_policy" "example" {
  identity = aws_ses_domain_identity.example.arn
  name     = var.name
  policy   = data.aws_iam_policy_document.ses.json

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a SES Identity Policy. More information about SES Sending Authorization Policies can be found in the SES Developer Guide.

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Amazon SES Identity Policy?

AWS Amazon SES Identity Policy is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Amazon SES Identity Policy?

For Terraform, the stelligent/config-lint, ffsclyh/config-lint and calebgregory/rxjs-react-chatroom source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.