-
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…
-
Continue reading →: Using Ansible With AWS – Creating EC2 Instances (AWS / Ansible)So far most of my Ansible blog posts have been deploying or configuring local devices (i.e. normally one of my Raspberry Pis), but the whole idea of Ansible is that it can build whole infrastructures as code (well, YAML files in my incase). The best place to see infrastructure as…
-
Continue reading →: Caching Requests (Python)Python’s Requests module is a great way for interacting with data over the internet, however when designing/building a Python program that uses Requests that can mean lots (and lots) of Request calls to test a function. This is not too great if you are testing over a poor internet connection,…


