AWS Amazon SES Domain Dkim

This page shows how to write Terraform for Amazon SES Domain Dkim and write them securely.

aws_ses_domain_dkim (Terraform)

The Domain Dkim in Amazon SES can be configured in Terraform with the resource name aws_ses_domain_dkim. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

email_domains.tf#L5
resource "aws_ses_domain_dkim" "aegames_org" {
  domain = aws_ses_domain_identity.aegames_org.domain
}

resource "aws_ses_domain_identity" "concentral_net" {
  domain = "concentral.net"
ses.tf#L5
resource "aws_ses_domain_dkim" "this" {
  domain = var.domain
}

resource "aws_iam_role_policy_attachment" "instance-SES-full-access" {
  role       = var.instance_role_name
main.tf#L7
resource "aws_ses_domain_dkim" "this" {
  domain = var.domain
}

main.tf#L5
resource "aws_ses_domain_dkim" "dkim" {
  domain = aws_ses_domain_identity.domain.domain
}

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

Provides an SES domain DKIM generation resource. Domain ownership needs to be confirmed first using ses_domain_identity Resource

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Amazon SES Domain Dkim?

AWS Amazon SES Domain Dkim 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 Domain Dkim?

For Terraform, the neinteractiveliterature/neil-terraform, gutogalego/reddit-demo-django and niveklabs/aws 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.