Let’s take a look at what I’ve broken today.
-
Console.log output not appearing – AWS SAM Node.js
Hi everyone, I ran into a bit of an interesting issue today after updating AWS SAM. All of my node log output stopped appearing in my console locally. For now, there’s a pretty simple workaround: Append 2>&1 | tr “\r” “\n” (including quotes) to your start-api command and you should begin to see the output…
-
CREATE_IN_PROGRESS when creating a certificate with CloudFormation
Hi everyone, I ran into a bit of an issue today while creating a certificate with CloudFormation. After kicking the stack off it ended up hanging on a step to create a domain verification entry in Route 53. I had used this script multiple times for creating a certificate for a subdomain, but this time…
-
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…
-
Golang and MySQL – DigitalOcean managed cluster
Hey everyone, Just sharing a helper function to get you started when trying to connect to a mysql managed cluster on DigitalOcean with Golang. Before we get into the code you’ll need to grab a couple of things from the database dashboard (on DigitalOcean). Open the databases tab Look for the “Connection Details” section Download…
-
failed to connect to the database: default addr for network unknown – MySql and Golang
Hey everyone, I’m currently setting up a mysql database on DigitalOcean and hit the following error when connecting: failed to connect to the database: default addr for “DATABASE_CONN_STR” network unknown Luckily this turned out to be a pretty easy fix. In the mysql driver repo you can see that the only scenario where this error…
-
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…
-
No matches for kind “Deployment” in version “apps/v1beta2” – DigitalOcean
Hey everyone, I’ve been working on a small golang app and decided to try out Kubernetes on DigitalOcean instead of the usual Azure or AWS. In order to get started I followed the tutorial at this link: https://www.digitalocean.com/community/tutorials/webinar-series-a-closer-look-at-kubernetes I ran into a small issue while trying to using the provided deployment.yaml. error: unable to recognize…
-
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead – Fix for Mac
Hey everyone, If you’re like me and a bit slack with your personal projects you might’ve started receiving the following error today: As the message says, Github wants you to start using a Personal Access Token (PAT) instead of password authentication. Luckily, the fix is pretty straight forward – you’ll need to create a Personal…
-
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:…