More Adventures in Ansible – Bind Example

Following on from a previous article https://geekmungus.co.uk/?p=4510 we now investigate some more into using Ansible for configuration management and installations. As something we can use as an example, we’re going to setup a simple Bind DNS server, which we can use to explore how to manage the installation of Bind and it’s configuration within Ansible. […]

More...

Example Website Workload – Amazon Elastic Container Service (ECS) with Application Load Balancer and DNS (Route53), including NAT Gateway

The Amazon Elastic Container Service (ECS), specifically Fargate allows you to run containers on an ad-hoc basis.  The following guide assumes you have already deployed an Amazon Elastic Container Registry (ECR), built your image, pushed it to the ECR and have obtained the Repository URI. The guide also uses local Terraform state, please see the […]

More...

Example Website Workload – AWS Elastic Container Service (AWS) with ALB, Route53 and Certificate

The below gives a simple example showing how you can deploy a containerised workload: a NGINX web server in this example which has two (or more) containers (tasks) running on AWS Fargate, presented behind a “Service” definition which is then presented to the Internet via an Application Load Balancer (ALB) where a certificate is obtained […]

More...

Example Website Workload – AWS Elastic Container Registry

The Amazon Container Registry (ECR) allows you to store the images within the cloud, for the purposes of this example we’ll use a simple container using a Dockerfile that creates an Apache web server that says “Hello World!”. Repository The example Terraform definitions can be found within Gitlab: Step 1 – Deploy Terraform You first need […]

More...

Terraform – AWS Assign Pre-existing Elastic IP Address to an EC2 Instance

Elastic IP Addresses (EIP) are great as they provide you with a static IP address which you can use for an endpoint to your application, but when you are automating things with Terraform, you don’t want it to be continually re-created or that IP address will change, and if you have DNS records pointing at […]

More...

Storing Terraform State on AWS S3 Bucket (including AWS DynamoDB for State Locking)

Building upon the example Simple Terraform Docker Example (Ubuntu Linux), we’ll store our Terraform State in AWS S3 Bucket, rather than just locally on the machine running Docker. Yes, I know its not a very useful example, but it simply illustrates the mechanism and how it can be used for more useful and complex deployments. Storing […]

More...