Tech Home The Bacon

Cowboy IT | Technologist

Category: AWS

Amazon EC2 Instance No SSH After Enabling SELinux – Regain Access

Problem:

I changed the default listening port for OpenSSH. Later on, I forgot that I had SELinux off for testing and when I turned it back on I couldn’t ssh to the EC2 instance.

Continue reading

Give User Permission To Just One S3 Bucket

Objective:

Give an IAM user programmatic access for certain S3 buckets. Note: If you go this route the user will not be able to list all buckets on this AWS account.

This is a great solution if you are a MSP providing backup solutions to S3 compliant storage and you don’t want IAM users from seeing or accessing other customers buckets.

Continue reading

Magento 2 and AWS SES – Password Resets Not Sending

Problem: 

I’ve setup the SMTP extension from Mageplaza and successfully sent and email with AWS SES. I tried resetting a user’s password, but the end user never receives the password reset email. 

Solution: 

The password reset emails use the Customer Support email address. If this is not configured SES will not deliver it. 

Go to Stores –> Configuration –> General –> Store Email Addresses and configure your customer support sender email address that is authorized to send through SES. 

Learning AWS: Redirecting A S3 Static Website Naked Domain to WWW

aws s3 learning static websitesObjective:

In my last post, I set up a simple S3 static website for the domain www.hiredatagram.com. The only problem is that the naked domain http://hiredatagram.com doesn’t resolve. In this post, I will show you how to redirect an S3 bucket (naked domain) to the S3 bucket that host the static website (www). We will not be using Godaddy for DNS hosting as they don’t support CNAME flattening. Cloudflare, however, does support CNAME flattening.

Continue reading

Learning AWS – Simple Static Website with S3 – Without CloudFront or Route53

aws S3 static website walk through no cloudfront no route53

Objective:

Setup an S3 bucket to host a simple static website. This tutorial will not cover CloudFront or Route53. I will use Godaddy for DNS. My test website will be a free website template called Global, which is free to download from GitHub.

Continue reading

Amazon Linux 2 – WordPress Error: There Has Been An Error Cropping Your Image

I’ve moved over to AWS and I’m running a fresh Amazon Linux 2 instance. I’ve got wordpress loaded and I try to crop an image for my theme’s header and I get “There has been an error cropping your image“.

After a little research, the obvious answer is to install php-gd and restart apache. This did NOT work for me. I did it about 5 times and checked my phpinfo to make sure php-gd was installed and it was.

After about an hour, I said I will restart the whole instance. That fixed it for me, still have no idea what service was causing the hang up.

© 2019 Tech Home The Bacon

Theme by Anders NorenUp ↑