aws

CloudFormation: Create a CloudFront Distribution with a Custom Domain and SSL

Static website hosting on S3 is great. However, I did not find a way how to set up SSL there. Further, I wanted to have multiple urls (e.g. example.org and example.com) point to this one bucket without much manual effort. All this can be done with CloudFront (Amazon’s content delivery network). This posts describes how to set up with CloudFormation the following: an S3 bucket, an S3 bucket policy that restricts access to this bucket just to CloudFront, a CloudFront Distribution that points to the S3 bucket, and finally, DNS entries in Route53 that point the real domains to the CloudFront URL.
Read more

Upload Files From Gitlab To S3 Automatically

Updated on Dec. 3rd 2017. Having recently started to use GitLab and their automated pipelines (GitLab CI) for hosting this website on GitLab Pages, I wanted to also learn how I can use their service to upload artifacts to S3. There are tutorials out there that do a good job in explaining how to do it and in more detail (e.g this or this), but I think that my solution has some valuable ideas points too.
Read more