Showing posts with label aws. Show all posts
Showing posts with label aws. Show all posts

Sunday, April 12, 2020

Creating a more permanent webserver

Started w/ research...


What is the best EC2 instance to use with a WordPress website?

4 Answers
Jon Green
Jon Green, AWS consultant; Cambridge AWS User Group organiser

OMG - it can't be this hard...

Followed by Cloudways!  It set it all up, free, no hassle, and works with AWS.  So, that's awesome - they do all the work for me!

...and then I found out I can't edit my own .php files properly in SSH.  Fuck.


...yeah, fuck that.  going back to Cloudways.

Figured it out!  VARNISH feature is what was fucking it up.  Turned that off and it works now.  Interesting.

DNS is setup.  @, www, and blog are all set.  DNS moved to GO DADDY.  AWS a

Now i have

Monday, August 19, 2019

Kartra Custom Domain Test

Well, that didn't go so well.

Setting a CNAME for www.howtofixinsomnia.com (testing this with the "fix insomnia" web) was easy enough.  In theory, by tomorrow it'll be linked up with kartra all nice and fancy.

However, redirecting howtofixinsomnia.com to https//www.howtofixinsomnia.com was a fucking disaster with AWS.  Appearently, the way to do this is COMPLEX.  WHY!??

1. Make a static redirect site with an S3 bucket.
2. Configure Cloudfront to work with the S3 bucket.
3. .... WHY THE FUCK CAN I NOT JUST USE ROUTE 53 TO POINT THE MAIN URL @ THE WWW.  JESUS.

Anyways full guide is below... stay away... stay far, far away...

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/tutorial-redirecting-dns-queries.html#tutorial-redirecting-dns-queries-create-route-53-record

So... for now... I am stuck using my website, with kartra's pages and their little favicon... I could try to route everything using GoDaddy but it'd prob be fucking annoying resetting up my email and shit... not worth it, this was supposed to be a cake walk.  Plus, when I go back to Amazon, I'd have to figure everything out again.  Too much of a pain

Sunday, July 21, 2019

Website Email: Amazon SES

Setting up email on my server isn't as straightforward as it may seem.  Amazon is concerned about their servers being used for email spam and have implemented restrictions, forcing you to request a lift on these restrictions or use their SES program.  However, with SES, the first 62,000 emails are free and it sounds like a legit service.  So let's do it.

ALL
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/quick-start.html

VERIFY EMAIL ADDRESS
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html

GETTING THE EMAIL ADDRESS IN THE FIRST PLACE
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-sendmail.html

If you're using Amazon SES to send email from an Amazon EC2 instance, you should also complete the following steps:
  • If you're using Amazon SES to send email from an Amazon EC2 instance, you might need to assign an Elastic IP Address to your Amazon EC2 instance in order for receiving email providers to accept your email. For more information, see Amazon EC2 Elastic IP Addresses.
  • If you're using Amazon SES to send email from an Amazon EC2 instance, you should complete the Request to Remove Email Sending Limitations form. Requesting this change removes the sending limit restrictions that Amazon EC2 applies to port 25 by default.


IAM User Name: howtocureinsomnia.emailserver.iam

The new user will be granted the following IAM policy:
"Statement": [{  "Effect":"Allow",  "Action":"ses:SendRawEmail",  "Resource":"*"}]

IAM User: howtocureinsomnia.emailserver.iam

SMTP Username:
In OneDrive (in web folder not in remembers)

SMTP Password:
In OneDrive (in web folder not in remembers)


Scratch all that!  You should NOT be hosting your own webserver!

I just need an email name.

Email names come from some kind of email registry, the same way domain names come from a domain registry.

So I bought an email off of godaddy, but then found out godaddy doesn't control my domain - AMAZON does.  lol

So I am trying to link it up with amazon... shit... kind of wish I didn't pay for a whole year... well, at least I didn't buy the backup service or any other etc shit.


Trying to link all that up in Route 53, but it's tricky.  I am very unclear about the SRV records in particular, since amazon isn't really setup to accept the "protocol" and "service" fields.  I set it up via BOTH solutions offered at the below link, and now I'm just waiting 24 hours for my work to propegate so I can know for sure that it's failing verification.


More Research Indicates that Email DOES come from server??

With cpanel, for instance, you can create as many "users" as you want.

With Amazon SES, you can verify email with an S3 bucket, install the email server of your choice (like cpanel's), and get as many emails as you want.

So.. what... the... faackk... dad was wrong??






Amazon also has "Amazon WorkMail"