James Cook
187 FOLLOWERS
With over 10 years of career experience in IT, I am focusing on developing and sharing my cloud and coding knowledge. My blog aim is to help grow and contribute to many communities.
James Cook
1M ago
While working on Open AI for the past few months, I found a Terraform module that really helped me get started with the Azure OpenAI component.
The module,Azure/openai/azurerm, has already been built with the intention of customisation, scalability, and security. As such, this becomes a great module.
In this blog, I will demonstrate how to use the module to deploy a public instance. Future blog posts will cover private network integration, adding a WAF, and further enhancements.
Public Instance Deployment
The instance we are deploying will be on the internet (public). I would recommend increas ..read more
James Cook
1M ago
This guide demonstrates deploying an Azure Container Instance of HashiCorp Vault using Azure Portal. This will be a no-code deployment. A follow-up blog on a HashiCorp Terraform deployment will be released soon.
The purpose of this guide:
Demonstrate a fast release of a container image on Azure without coding knowledge
Familiarise yourself with Azure Container Instances in the Azure Portal
Test and play with HashiCorp Vault
For best practice, I always recommend that production (really all) resources be "as code" for both the infrastructure and the app. As such, I would not follow this ..read more
James Cook
1M ago
I've been using GitHub for a while now, familiarizing myself with all its features. GitHub was a repository-only platform that tapped into third-party services to power up its capabilities. It has moved a long way since then and now offers users the ability to create workflows and run actions against their repos.
In this post, I will cover how to create a workflow for a repository containing HashiCorp Terraform configuration files, using only GitHub Actions to run Terraform.
What do you need
To follow this post, you will need the following:
GitHub account (free or paid). Instructions here ..read more
James Cook
1M ago
What is Terraform Compliance
Terraform Compliance is an Open Source security tool used to enforce compliance controls on IaC, specifically Terraform. It is written in easy-to-read language and stored in files that act as policies.
How does it work
The tool runs against your Terraform Plan, evaluating against the policies you create. During the run, it identifies violations and outputs the results for remediation. Organisations can put these policies in a central location and have all IaC conform to best practices and standards.
When should you run Terraform Compliance
There are two stages of a ..read more
James Cook
1M ago
How to create a simple Pipeline Template
Create a file in a new or existing pipelines folder in your repository. I like to store these files in a directory of devops/pipelines/templates. Name the file based on the template action you would like to take. For my example, I will create a simple template for running a docker container called Super Linter, so I will call my file super-linter.yaml.
My template will have one step and will look like this:
steps: - script: | docker pull github/super-linter:latest docker run -e RUN_Local=true -e VALIDATE_GITLEAKS=true -v $(System.Defau ..read more
James Cook
1M ago
Azure Terrafy (Aztfy) has been rebranded to Microsoft Azure Export for Terraform (Aztfexport). The original name was catchy, and I enjoyed saying it. The new name is a mouthful, so I will refer to it as Terraform Export for Azure or Tea, as I am British and like tea. The PR for this change of name can be found here.
Does this change the functionality of the tool?
No, the tool still works as designed. This is just a rebrand and will not affect your use of it. But upgrading anything above v0.11.0 will result in the following changes:
The aztfyResourceMapping.json resource mapping file is now a ..read more
James Cook
5M ago
Why change to legacy audit logs experience
The biggest flaw in the new Audit Logs experience is that the filters cannot search a value, resulting in manual scrolling.
New experience:
Old experience:
How to switch back
Within the Audit Logs window, a banner appears at the top:
Click this banner to leave the preview.
You should go from this:
To this:
How to go back to the new experience
Where the banner for legacy audit logs experience was before, you should now see a purple banner instead:
Click on the banner to go back to the new experience.
Is this permanent?
No, Microsoft will soon for ..read more