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
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",
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",
resource "aws_ses_identity_policy" "personal" {
identity = aws_ses_email_identity.personal.arn
name = "personal"
policy = data.aws_iam_policy_document.personal.json
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
}
resource "aws_ses_identity_policy" "example" {
identity = aws_ses_domain_identity.example.arn
name = var.name
policy = data.aws_iam_policy_document.ses.json
Parameters
-
id
optional computed - string -
identity
required - string -
name
required - string -
policy
required - string
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.