News for hackers. Stuff that matters.
Re:Mistakes I've Made in AWS by mathnmusic on Saturday September 11, 2021 @08:45AM (#28491542)
I was recently forced to migrate my hobby FOSS project the other way: from DigitalOcean to AWS. The primary reason being: a generous quota of 60,000 emails per month to send via SES. Most mail providers give only up to 3,000 to 6,000 emails per month.
Re:Mistakes I've Made in AWS by BackBlast on Saturday September 11, 2021 @09:13AM (#28491709)
You can use ses without moving your digital ocean server.
Re:Mistakes I've Made in AWS by mhitza on Saturday September 11, 2021 @11:46AM (#28492896)
From the AWS SES free tier fine print

> 62,000 Outbound Messages per month to any recipient when you call Amazon SES from an Amazon EC2 instance directly or through AWS Elastic Beanstalk.

Re:Mistakes I've Made in AWS by TriNetra on Saturday September 11, 2021 @12:19PM (#28493178)
wow, they are really tracking from where you're calling the API to give credit, first of its kind I've heard :)
Re:Mistakes I've Made in AWS by rualca on Sunday September 12, 2021 @05:46AM (#28499796)
It's not that hard or far-fetched, given that your EC2 instance needs to have permissions to call SES and AWS can tell whether these requests come from inside or outside their network.
Re:Mistakes I've Made in AWS by BackBlast on Saturday September 11, 2021 @06:43PM (#28496784)
Good eye.
Re:Mistakes I've Made in AWS by lamnk on Saturday September 11, 2021 @11:38AM (#28492829)
You can host your project on DO and connect to SES to send emails. Why do you have to move the complte project over?
Re:Mistakes I've Made in AWS by mhitza on Saturday September 11, 2021 @11:48AM (#28492909)
Those 60k free emails only apply when SES is invoked from an EC2 instance or Elastic Beanstalk
Re:Mistakes I've Made in AWS by rualca on Sunday September 12, 2021 @05:49AM (#28499802)
> Those 60k free emails only apply when SES is invoked from an EC2 instance or Elastic Beanstalk

What stops you from putting a service running on a free tier EC2 instance to listen to requests to call SES?

Re:Mistakes I've Made in AWS by mhitza on Sunday September 12, 2021 @07:31AM (#28500217)
Nothing, it's just another layer you have to manage yourself (sidenote: the free tier EC2 instance is free for 12 months since the AWS account creation).

You'd also need to make communication secure, and use some authorization mechanism to avoid abuse and email addresses leaks (or other private information you might be passing to your service to include in the email).

Re:Mistakes I've Made in AWS by rualca on Sunday September 12, 2021 @08:10PM (#28506425)
> Nothing, it's just another layer you have to manage yourself

You already have to manage that layer. From your description, the only choice that was really on the table was whether AWS SES was a good enough reason to port a entire system to AWS, or if it was reasonable to just deploy the email firing service to AWS.

> You'd also need to make communication secure, and use some authorization mechanism to avoid abuse and email addresses leaks (or other private information you might be passing to your service to include in the email).

You still need to do that even if the service is running on AWS. Running the SES client in a VPC is also a very poorly researched excuse as you can put up a privatelink connection to get the same effect.

All in all, it's hard to believe that someone thought it was a good idea to port an entire system to a different cloud provider just because they wanted to send emails.

Re:Mistakes I've Made in AWS by basmango on Saturday September 11, 2021 @03:43PM (#28495196)
I think they mean having a seperate small service just for mailing on beanstalk.
Re:Mistakes I've Made in AWS by grafporno on Saturday September 11, 2021 @08:31PM (#28497475)
How is 60,000 _a month_ generous?