You must be logged in to view saved presets
Creates an SES domain identity and attaches a sending authorization policy to it.
data "aws_iam_policy_document" "example" {
statement {
actions = ["SES:SendEmail", "SES:SendRawEmail"]
principals {
identifiers = [*]
type = "AWS"
}
resources = [aws_ses_domain_identity.example.arn]
}
}
resource "aws_ses_domain_identity" "example" {
domain = "example.com"
}
resource "aws_ses_identity_policy" "example" {
identity = aws_ses_domain_identity.example.arn
name = "example"
policy = data.aws_iam_policy_document.example.json
}