Category: AWS

  • Errors pushing an image to a new ECR repo on AWS

    Errors pushing an image to a new ECR repo on AWS

    Hey everyone, I normally use DigitalOcean or Azure for docker and kubernetes but have decided to give AWS a go this time around. I was following a guide on deploying an image to a new ECR repo and hit a couple of issues. The first was that running the login command output help options instead…

  • Console.log output not appearing – AWS SAM Node.js

    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

    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

    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

    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…

  • 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:…

  • ElasticSearch on AWS – Anonymous is not authorized to perform es:ESHttpGet

    Hi everyone, I am trying out ElasticSearch on AWS and ran into the following error while trying to access the provided Kabana endpoint: {“Message”:”User: anonymous is not authorized to perform: es:ESHttpGet”} This turned out to be pretty simply, I just needed to whitelist my IP. Go to your search domain in the aws console, click…

  • Cognito Hosted UI User Pool – Google not showing

    Cognito Hosted UI User Pool – Google not showing

    Hi everyone, I’m implementing Cognito User Pools for an app and currently adding social providers (Google, Facebook, etc). The setup process seems pretty straight forward, however the social options did not appear on my hosted ui. It turned out that I’d missed the last step in the documentation: – Go to “App Client Settings” (left…

  • Access to fetch from origin has been blocked by CORS policy – AWS SAM Local

    Hi everyone, I’ve been using AWS SAM local lately and ran into a bit of an issue with CORS. It took a looong time to find a solution that worked for all of my local scenarios so hopefully this will be able to help someone else out. Access to fetch at ‘http://127.0.0.1:3000’ from origin ‘http://localhost:3001’…

  • AWS SAM Request Extremely Slow – Fix

    Hi everyone, I’m currently using AWS SAM CLI with NodeJS and was surprised to find that the requests were significantly slower when run locally. Luckily, I came across a post that suggested adding –skip-pull-image to your start-api command: sam local start-api –skip-pull-image This brought my requests down to under a second. Thanks to the following…

Create a website or blog at WordPress.com