The Curious Dev

Various programming sidetracks, devops detours and other shiny objects

Sep 13, 2016 - 2 minute read -

Scheduling actions on an ASG

This post builds on Cloudified MoinMoin further where we’re going to schedule the application to be down at certain times of the day/week. A relatively new feature of CloudFormation templates is the AWS::AutoScaling::ScheduledAction block, which allows us to alter the MinSize and MaxSize properties of the AutoScalingGroup. This can be useful in a number of settings, but perhaps a good example is an internal webapp for a business where there are quite clear “business hours” where it’s critical to have the application up and responsive all day long.

Sep 3, 2016 - 4 minute read -

Cloudifying MoinMoin

This post takes the Installing MoinMoin on Nginx and uWSGI post further by deploying the built instance of MoinMoin within an AutoScalingGroup (ASG). Creating the AMI From my previous post of we have come out with a running instance configured as desired. The only trouble with this situation is that it’s a snowflake. First step to producing a server that can be repeatedly recreated is to take a snapshot of the instance, this is as simple as choosing so in the AWS console and giving it a name.

Jul 30, 2016 - 3 minute read -

Installing MoinMoin on Nginx and uWSGI

MoinMoin is a great wiki having used it on and off over the years. This post demonstrates how to get MoinMoin up and running with Nginx and uWSGI. Install nginx Simply install via package: yum install nginx -y Then configure /etc/nginx/nginx.conf with a section similar to this before the existing default section: server { server_name wiki.easyas.info; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { include uwsgi_params; uwsgi_pass unix:///usr/local/local/share/moin/moin.sock; uwsgi_modifier1 30; } } I’m using wiki.

Jul 2, 2016 - 7 minute read -

Static Hosting with AWS

This site is hosted from an AWS S3 bucket and fronted by the AWS CloudFront CDN service. Continuing a recent theme about security, I figured I’d provide an updated guide to configuring S3 and CloudFront hosting with the additional angle of securing with TLS. I briefly covered CDNs and CloudFront in easy wins for website performance. Essentially a CDN is a vast collection of servers distributed throughout the world in a way that they’re “close” to the consumers of the assets served.