I have an AWS SNS topic that publishes emails to user endpoints.
The sender of the email is no-reply@aws...etc
I have a verified SES email for my company that I would like to apply to the sender of the SNS topic.
I added the SourceARN to the SNS Topic's access policy like the documentation said
{
"Version": "2008-10-17",
"Statement": [
{
"Action": [
"SNS:Publish"
],
"Resource": "arn:aws:sns:region:myaccid:test-std-topic",
"Condition": {
"StringEquals": {
"AWS:SourceOwner": "myaccid",
"AWS:SourceArn": "arn:aws:ses:region:myaccid:identity/no-reply@stackexample.com"
}
}
}
]
}
But after applying and publishing another message, the sender is still no-reply@aws... Instead of the verified identity that I have linked via SourceArn.
How do I modify the SNS Topic's access policy to apply this verified identity?
You cannot change this configuration. SNS controls the sender identity (e-mail address) that is used to send e-mail messages through an SNS topic.
The access policy and documentation you mentioned refers to a different use case. It refers to SES feedback forwarding mechanism to track bounce/complaint/delivery events. You can read more about it here
You can read more about aws:SourceArn condition here.
If you want to change the sender identity for your emails, you'd have to use SES APIs