Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SES on a different region from EC2 instance

The region my EC2 instance is in is not supported by SES, can I still somehow send emails through another region?

like image 825
Matheus Simon Avatar asked Oct 17 '16 03:10

Matheus Simon


People also ask

Is AWS SES a regional service?

Amazon SES is available in several AWS Regions around the world. In each Region, AWS maintains multiple Availability Zones. These Availability Zones are physically isolated from each other, but are united by private, low-latency, high-throughput, and highly redundant network connections.

Can we move EC2 instance from one region to another?

It's not possible to move an existing instance to another subnet, Availability Zone, or VPC. Instead, you can manually migrate the instance by creating a new Amazon Machine Image (AMI) from the source instance. Then, launch a new instance using the new AMI in the desired subnet, Availability Zone, or VPC.

At what regions AWS SES is available?

Amazon Simple Email Service (Amazon SES) is now available in the Asia Pacific (Mumbai), Asia Pacific (Sydney), and EU (Frankfurt) Regions, in addition to the US East (Virginia), US West (Oregon), and Europe (Ireland) regions.

Can an AWS account be multi-region?

Identity and access across Regions AWS Identity and Access Management (IAM) accomplishes this by creating a reliable mechanism for you to manage access to AWS services and resources. IAM has multi-Region availability automatically, with no configuration required on your part.


1 Answers

Yes, you can actually call AWS services in any region from any region. In fact, you can call AWS services from anywhere on the Internet (such as your own home computer).

If you are using Amazon SES via SMTP, just point to the SES SMTP endpoint.

If you are using Amazon SES via API calls, pass the Region Name to the client. For example, in Python:

import boto3

client = boto3.client('ses', region_name='us-east-1')
client.send_email(...)
like image 170
John Rotenstein Avatar answered Sep 30 '22 10:09

John Rotenstein