CloudFormation deploying CodePipeline error: User: is not authorized to perform: iam:PassRole on resource: ...

A quick guide to how to fix this cloudformation error: is not authorized to perform: iam:PassRole on resource: The Problem: is not authorized to perform: iam:PassRole on resource: Yesterday I ran into this slightly miss leading error shown below: User: arn:aws:iam::123456789123:user/myUser is not authorized to perform: iam:PassRole on resource: CFDeployRole-lkjh1234lhj1324(Service: AWSCodePipeline; Status Code: 400; Error Code: AccessDeniedException; Request ID: xxxxxxxxx-1111-xxxx-1111-xxxxxxxxx; Proxy: null) I ran into this while deploying an IAM role in CloudFormation and then using it as the RoleARN for one action in a CodePipeline deployed by the same CloudFormation template....

August 18, 2020 · 3 min · chart

Install AWS SAM CLI on Linux without Homebew

The official AWS installation docs for Linux tell you to install Homebew so that you can install the AWS SAM CLI. This is just plain dumb. You should not need to install a new package manager just to install one tool. Below are the steps to follow so that you do not have to. Prerequisites Ensure Python 3 is install Ensure PIP 3 is installed Ensure AWS CLI v2 is installed and configured...

July 17, 2020 · 1 min · chart

WSL Wrong Time: How to Fix incorrect Time in WSL

While working with AWS SAM I ran into an error caused by the local system time of WSL being wrong. In the above image notice that the date command outputs the hour being 4. A call to worldtimeapi.org for my timezone shows the time being 12. Something is wrong. World time API call formatted with JQ: curl -s "http://worldtimeapi.org/api/ip" | jq '.["datetime"]' I attempted to re-configure WSL Ubuntu’s time with sudo dpkg-reconfigure tzdata...

July 13, 2020 · 2 min · chart

Run Postman's Newman in an AWS Lambda function: specify JSON export location

The Problem After getting my NodeJS application using Newman with the JSON reporter to work locally I started testing it in Lambda locally with SAM CLI. I encountered the following error: Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: EROFS: read-only file system, mkdir '/var/task/newman'","reason":{"errorType":"Error","errorMessage":"EROFS: read-only file system, mkdir '/var/task/newman'","code":"EROFS","errno":-30,"syscall":"mkdir","path":"/var/task/newman","help":"error creating path for file \"newman/newman-run-report-2020-07-09-15-46-40-040-0.json\" for json-reporter","stack":["Error: EROFS: read-only file system, mkdir '/var/task/newman'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: EROFS: read-only file system, mkdir '/var/task/newman'"," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process....

July 10, 2020 · 2 min · chart

AWS WordPress Blog: Part 2 – Deploy the EC2 Instance

Full AWS WordPress Blog series so far: AWS WordPress Blog: Part 1 – Buy a domain AWS WordPress Blog: Part 2 – Deploy the EC2 Instance This is the second article in a series which will detail how to deploy a WordPress server at AWS the cheapest way possible. This series will teach you about Route53, EC2, S3, CloudFront, IAM, and more! All while helping you setup your own blog which every good IT professional should have....

May 14, 2020 · 3 min · chart

Copy Firefox Logins and Bookmarks to a new computer or login on Linux

How to copy Firefox saved logins and password, autofill data, and bookmarks over to a new computer, a new profile or a new user. While its best to use a more secure password manager such as keeper or Lastpass, if you do have some of your passwords stored in the built-in Firefox password manager this will show you step by step how to copy them over. PreReq: Figure out which profile is default Open your preferred terminal....

May 4, 2020 · 3 min · chart