Azure KeyVault with .NET Core Web App – Part 1

Azure KeyVault with .NET Core Web App – Part 1

When it comes to security you can never bee too secure. Modern applications work with sensitive data and it is more important than ever to make sure that credentials are being well protected. When it comes to designing a web application I want to make sure that for any sensitive data (API keys, passwords, connections …

+ Read More

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

Get a List of All AWS EC2 Instances

Get a List of All AWS EC2 Instances

I have been playing with AWS Pricing API and I wanted to get a list of all avaliable EC2 Instances. I used NuGet package AWSSDK.Pricing I used GetAttributesValuesRequest() method and set it to return all EC2 instance types. The max number of results is 100 so the code needs to look into the NextToken property …

+ 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

Azure Storage – Part 1

Azure Storage – Part 1

What is Azure Storage? Azure Blob is a big scalable object of text or binary data Azure Files are managed file shares for deployments Azure Queues are messaging stores for secure communications between applications Azure Table is schemaless storage of structured data (NoSQL) . Azure Tables have been replaced by CosmosDB What is Azure Storage …

+ 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

Securing HTTP-Triggered Azure Function

Securing HTTP-Triggered Azure Function

In order to start working with Azure Functions you need to create a Function App in your Azure subscription. It is a container that groups your functions into a logical unit. I am going to add an .NET Azure Function that will be triggered by HTTP-trigger. It will receive a Guid Id of my Azure …

+ Read More