-
Continue reading →: The DRY principle: Ansible and variablesOne of the frequent teachings I have learned whilst learning programming languages is that repeated blocks of code should be, where possible, placed into a function so that the function can be called multiple times instead of writing out the code multiple times. This approach as the benefits of: Producing…
-
Continue reading →: Hacktoberfest 2020
It’s October 2020 and time for the 7th Hacktoberfest. Between the 1st October and 31st October Hacktoberfest encourages anyone from developers, to students to those that just want to give Git a shot, to complete some Git pull requests and help out with public repositories on GitHub. I’ve not taken…
-
Continue reading →: Terraform – States, Locks & Team WorkTerraform can create, modify and destroy infrastructure, and with my last blog post I’ve seen that it can run Ansible to configure the infrastructure that it creates. So far, so good but what if multiple people work on the same project with each trying to adjust code at the same…
-
Continue reading →: Terraform – Security Groups, Provisioners and AnsibleMy previous blog posts looked at what Terraform is and also how to deploy an AWS EC2 instance with Terraform. In this blog post I am going to alter my main.tf file so that Terraform also creates a new AWS security group with some ingress rules and also runs an…
-
Continue reading →: Terraform – Introduction: TF files / First Run
Following on from my previous blog post which looked at installing Terraform, I am now going to look at using Terraform to deploy an AWS EC2 instance. Terraform uses Infrastructure as Code (IaC) and so it needs a terraform file containing the details of what the expected infrastructure should be.…
-
Continue reading →: Terraform – Introduction: Installation
In this blog post I am going to introduce Terraform and install it. What’s Terraform? Terraform is a tool to help build infrastructure from code, i.e. it takes a terraform file and then creates / destroys infrastructure as required. Terraform was created by Hashicorp, the same company behind Vagrant and…
-
Continue reading →: AWS – Virtual Image To EC2 Image (AWS)In this blog post I am going to look at exporting a virtual machine from Virtual Box and then importing it into AWS for use as an EC2 instance. Note: During my initial test I used a version of Ubuntu not yet supported by AWS EC2 (well, a version of the…
-
Continue reading →: AWS – Using Logstash to Ingest Logs From S3 Bucket Into ElasticI have written a few blog posts about setting up an ELK (Elastic Logstash Kibana) stack but have not really touched on the power of Logstash. In this blog post I am hoping to resolve this by looking at using Logstash to get logs from an AWS S3 bucket and…
-
Continue reading →: Changing Ansible Playbook Depending On Operating System (Ansible)When running an Ansible playbook (or roles) it becomes a little bit irksome to have to create new playbooks just because a device may have a different operating system. Thankfully the awesome people behind Ansible have a solution for this. A Little Background… I have my inventory set in a…
-
Continue reading →: Using Ansible with AWS – Creating Multiple EC2 Instances, Tagging Them and ELK (AWS/Ansible)In my previous blog post I used Ansible to create an AWS EC2 instance and discussed how to do this via the Ansible ec2 module. Today I am going to go slightly more in depth with creating multiple instances, inventory groups and tagging. The playbook I am using for this…


