Author: Adam Coxon

Deploying CFN with Boto3

Deploying CFN with Boto3

I have recently been involved with a project that required orchestrating the automating of various AWS Services to achieve the desired end output. To achieve this ‘Orchestration’ I decided to use AWS Step Machines as they easily wrap together and control the flow and data processing (State) between the tasks. The first step of this …

+ Read More

Retrieve User Credentials from Secrets Manager

Retrieve User Credentials from Secrets Manager

This blog post will cover off how to programatically retrieve a set of User Credentials from AWS Secrets Manager. Using the Boto3 Python SDK we can easily connect to the Secrets Manager and retrieve the specified secrets. Before beginning, ensure you have the following: Access to AWS Python 3 and Boto3 installed Create the secret …

+ Read More

Read Content From an S3 Bucket

Read Content From an S3 Bucket

It may not be obvious at first as to what the best method is to read the contents of a file that resides within an S3 bucket. If your attempts at this were anything like mine then you would have spent lots of time looking at the Boto3 S3 resource, and its various methods, only …

+ Read More

Installing CURL on Windows

Installing CURL on Windows

Curl is a very common CLI tool used for transferring data between systems using various protocols. Curl comes out of the box on Linux systems but now on Windows. This blog post will show how to download Curl and configure it to be called natively from CMD and PowerShell. Download Curl The first step is …

+ Read More

Time Functions in ARM Templates

Time Functions in ARM Templates

There has been a need for a while now to have time Functions within ARM templates which has historically been convoluted and could not be down within the ARM template itself. I have had this need for a while as I typically pass the deployment datetime as a value to Tag resources with. Previously I …

+ Read More

Find Available Addresses Within an Azure Subnet

Find Available Addresses Within an Azure Subnet

Overview I recently had to rebuild a customers Web Application Firewall cluster in parallel so the new infrastructure can coexist without affecting the original. As this was a 3 node cluster and each node has multiple IP configurations, I needed to understand what addresses were free so I could configure the new firewalls. A relatively …

+ Read More

Finding Properties and Methods of Objects in Python

Finding Properties and Methods of Objects in Python

Having come from a PowerShell background and being spoiled with its simplicity, I realised there are a few things I take for granted which are not as simple in Python. One of these is to easily see what Methods and Properties are available on an object. PowerShell Get-Member PowerShell has an inbuilt cmdlet for exactly …

+ Read More

Finding Palindromes with Python

Finding Palindromes with Python

I have recently been playing around with Python and set my self the typical task that most devs get asked during interviews. “Here is s list of string, I want you to find me all the palindromes that are greater than length n”. Sound familiar? Well, with Python being very flexible and simple this tasked …

+ Read More

ICMP on Server 2016 and 2019

ICMP on Server 2016 and 2019

By default the firewall on Server 2019 and Server 2016 blocks ICMP packets. I had to enable this on a VM and I do not like clicking the “Windows Firewall With Advanced Security” GUI. As such, PowerShell is the answer. The below code can be used to allow ICMP In and Out on Server 2019 …

+ Read More

Let’s Encrypt on Azure Web App

Let’s Encrypt on Azure Web App

Overview I recently had the need to secure an Azure Web App using a SSL certificate but wanted to do this in the cheapest way possible, i.e, free. This is possible using Let’s Encrypt, the free, automated and open certificate authority. This post will demonstrate how I made use of this on my Web App …

+ Read More