Tag: guide
-
Adding a Custom Domain Name – AWS SAM
Hi everyone, It’s been a long time but I’m messing around with AWS SAM again. I’m currently converting www.testerwidgets.com into an AWS SAM application. As part of this I needed to add a custom domain. Unfortunately, the doco on how to do this isn’t great so I’m going to share what ended up working for…
-
Configure AWS Route53 domain to point to DigitalOcean name servers
Hey everyone, This is a quick post on how to point your AWS Route53 domain to DigitalOcean. I’m currently messing around with Kubernetes on DigitalOcean (DOKS) and want to use their name servers to nginx. The guide I was following (https://github.com/digitalocean/Kubernetes-Starter-Kit-Developers/blob/main/03-setup-ingress-controller/nginx.md) was missing a specific walkthrough for Route53 so I’m just posting what I did…
-
Custom Error Message for PriceInCents – Vue3 and Vuelidate
Hey everyone, This is a quick post to show how you can add a custom error message when using Vuelidate in Vue3. In my case I have a price field that should not be greater than $1000. The issue is that I store the amount in cents which results in the following error: This is…
-
Create a pre-signed upload url for AWS S3 using Golang
Hi everyone, This is just a quick post on how to create a pre-signed upload url for AWS S3 using Golang. The generate the presigned url, you’ll need something like the following: Note that we’re using godotenv to load AWS environment variables containing a few AWS keys. You can get godotenv by running the following:…
-
Viewing SQL Logs in MySql
Hi everyone, I’ve recently switched from PostgreSQL and MSSQL to MySQL. I ran into a bit of an issue today where I needed to see the queries I was generating for an insert statement. For MSSQL I’d normally use SQL profiler. After a bit of Googling I came across the following solution for MySQL: Running…
-
AKS Template for Azure Bicep
Hi everyone, I’ve added AKS to my Azure environment today using Bicep. This is the Bicep template I ended up using in case it’s useful: See this link for more info on what each of the parameters do: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-rm-template One thing to note is that reversing this template didn’t immediately work. I had to add…
-
Container Registry Template for Azure Bicep
Hi everyone, Just another Bicep template I’m using – this one is for a basic container registry: See the following definition if you need more info on some of the properties: https://docs.microsoft.com/en-us/azure/templates/microsoft.containerregistry/2019-12-01-preview/registries?tabs=json
-
Key Vault Template for Azure Bicep
Hi everyone, I’m currently mucking around with Bicep as a replacement for plain ARM templates. I’ve just created a key vault and thought I’d share it in case anyone else finds it useful: param namePrefix string param location string = resourceGroup().location param tenantId string var name = ‘${namePrefix}${uniqueString(resourceGroup().id)}’ resource key_vault ‘Microsoft.KeyVault/vaults@2019-09-01’ = { name: name…
-
Setup MongoDB on an Azure VM
Hi everyone, I’m currently using a small linux vm to host a MongoDB instance on Azure. These are the steps I followed: ## MongoDB ### Install https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 1. Import the public key: `wget -qO – https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -` 2. Create a list file: `echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse” |…
-
Setup PostgreSQL on an Azure VM
Hi everyone, I’m currently testing out a small linux vm with PostgreSQL on Azure. Just sharing the steps for future reference and hopefully it’ll be able to help you out as well. Good luck!