Published inTowards AWS·Jul 9Member-onlyBlocked by CORS policy AWS CDKWhen creating an AWS API gateway connected to the Lambda function, I was getting a CORS error. This is how I went about fixing it in my AWS CDK (python) infrastructure as code. If you don’t have a Lambda/APIGateway function setup see this article. I was getting this error in…Cloud Computing2 min readCloud Computing2 min read
Jun 3Member-onlyErrors updating LinuxI had some errors updating Linux (Debian) OS system packages, below, I will run through how I fixed the packages. When I ran sudo apt-get update I got the following message. E: The repository 'http://apt.postgresql.org/pub/repos/apt -pgdg Release' does not have a Release file. N: Updating from such a repository can't be…Linux2 min readLinux2 min read
Apr 9Member-onlyPost to LinkedIn using Python AutomationBelow are steps I went though to authenticate my LinkedIn token and post to my LinkedIn personal account using a python script. Prerequisites IDE (VS Code) Python installed Linux based OS Create an app Go to https://www.linkedin.com/developers/apps Click — Create an app Follow the prompts; you will need a company page. Don’t worry you…Python3 min readPython3 min read
Feb 25Member-onlyHow to Create a Serverless Contact Form using Lambda, DynamoDB and AWS CDKBelow are steps I went through to create a Serverless app that saves email from an HTML form to a DynamoDB in a few hours. Apologies code is a bit rough, but I thought it was useful. Quite surprised by how easy it was. I was using AWS CodeWhisperer for…AWS5 min readAWS5 min read
Feb 11Member-onlyGenerate code suggestions using OpenAI API and Python.I was wondering how to run OpenAI/ChatGPT code generation using the OpenAI API locally, so I thought I would have a play to see if I could get it working. Here are my steps. Beware, there are small costs involved. Prerequisites Linux based OS Python IDE You will need an OpenAI pay as you go Account First, sign up here View…Artificial Intelligence2 min readArtificial Intelligence2 min read
Published inTowards AWS·Jan 27Member-onlyBenefits of multi-cloud architecturesA multi-cloud architecture is a type of cloud computing approach in which an organization uses multiple cloud services from different vendors, rather than relying on a single vendor. Benefits This approach can provide a number of benefits, including: Improved Flexibility: By using multiple cloud services, organizations can choose the best solution…Cloud Computing5 min readCloud Computing5 min read
Jan 8Member-onlyAlgorithms: Consequences of adding more loopsCode Example Let's consider this codeAlgorithms2 min readAlgorithms2 min read
Published inAWS in Plain English·Dec 6, 2022Member-onlySetup an Ubuntu Docker containerSometimes you need to set up a blank Ubuntu Linux instance to test commands or pipeline executions or install things. Prerequisites Linux OS Docker knowledge Below I will go through how I set up a Ubuntu 22.04 docker container and be able to run commands inside it Add a Dockerfile touch…Docker2 min readDocker2 min read
Published inAWS in Plain English·Oct 16, 2022Member-onlyRun AWS CDK in a Docker containerAWS Cloud Development Kit (AWS CDK) is a framework used to provision AWS cloud infrastructure using programming languages such as python which below guide is based on. More information on AWS CDK here There is quite a few packages required for AWS CDK so I decided to containerise it so…AWS4 min readAWS4 min read
Published inTowards AWS·Sep 24, 2022Member-onlyChanged files in AWS S3 bucket website but website has not changedIf you have uploaded new files and or changes to your S3 website bucket but you have no changes shown when you load your website url, you need to invalidate your CloudFront cache. S3 hosted websites are connected to Cloudfront distribution which caches content. See “Hosting a static website using…AWS3 min readAWS3 min read