You must be logged in to view saved presets
Creates an SESv2 email identity and attaches a policy that allows specified IAM users to manage the email identity.
resource "aws_sesv2_email_identity" "example" {
email_identity = "testing@example.com"
}
resource "aws_sesv2_email_identity_policy" "example" {
email_identity = aws_sesv2_email_identity.example.email_identity
policy = <<-EOF
{
"Id":"ExampleAuthorizationPolicy",
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AuthorizeIAMUser",
"Effect":"Allow",
"Resource":"${aws_sesv2_email_identity.example.arn}",
"Principal":{
"AWS":[
"arn:aws:iam::123456789012:user/John",
"arn:aws:iam::123456789012:user/Jane"
]
},
"Action":[
"ses:DeleteEmailIdentity",
"ses:PutEmailIdentityDkimSigningAttributes"
]
}
]
}
EOF
policy_name = "example"
}