简体   繁体   中英

Start Server through email in AWS

I have requirement where authorized people will send an email and then an EC2 server should start.

We have decided to use SES and Lambda for this.

I have learned that we can set up rule in SES which then can trigger a Lambda function where we will have boto3 code to start the EC2 instance.

I was going through Amazon SES Email-Receiving Concepts to do a Proof of Concept for this.

I have some questions:

  1. To do POC in my AWS account do I need my own Domain name?
  2. In real time when we set these rule where the authorized person will send email to which email-address address? And any particular format for it?

You would need a domain name (or sub-domain) with an MX record pointing to Amazon SES, or your existing email system could forward the email to the SES endpoint.

You could then configure SES to trigger a Lambda function for each incoming email. You could then code the Lambda function to turn on the EC2 instance. It could even look at who sent the email and make a decision about which EC2 instance to start. This would all be your own code, so the contents of the email is totally up to you!

For details, see: New – Receive and Process Incoming Email with Amazon SES | AWS News Blog

Let us know how it worked for you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM