Check out my articles

Articles, thoughts, and opinions are my own.

Securing S3 static websites

How to create public websites out of private S3 buckets

Posted on May 7 2020
AWS S3 CloudFront Security

Using S3 buckets for storing public websites is one of the most useful features of S3. It is a simple, cost-effective, and scalable alternative for hosting static websites or Single Page Applications. However, there are situations when creating an S3 bucket with public objects is not possible due to compliance or security reasons which can lead to the impression that you can’t use S3 for in this scenario. This is partially true, you can’t do it with S3 alone but you can add a few things and achieve the same behavior of an S3 static website hosting. Keep reading if you want to know how to do it.


Rundeck on AWS

Configuring Rundeck with NGINX behind AWS ALB with SSL termination

Posted on Feb 16 2019
AWS Rundeck NGINX ALB ELB

I spent the whole day troubleshooting some authentication/redirection problems in my Rundeck setup, I went to the pub and had a few beers then I went to bed and woke up at 4 AM with one of those productive insomnia feelings so I headed straight to the computer to find the solution for my problems. Let’s go through my setup so I can explain the problem a bit more and hopefully help you avoid the same issue.


Forget that host!

Script for removing entries from the known_hosts file

Posted on Jan 28 2019
Bash Linux

There comes a time in any Linux systems administrator where he faces an issue while connecting to a new server if an old/known name. Although it is not a difficult problem to solve it can be a PITA to manually edit your know_hosts file each time it happens, therefore having a script ready to do it for you can be very handy.


Customizing the default user of an Ubuntu AMI

(And other distros too)

Posted on Jan 21 2018
AWS AMI Packer

I like creating custom AMIs to ease server configuration of my AWS environments, my personal approach is to create a base AMI with some basic tools that will be used in my EC2 instances and then use it as starting point to create other AMIs. Over the years I found that it has a lot of benefits but can also demand many hours of management work if you don’t set up things properly. One of the first things I like to do is customizing the default user of my AMIs, not just for consistency but also to...