LIST

cdk run local lambda with sam-cli

install brew install awscli brew install aws-cdk brew tap aws/tap brew install aws-sam-cli Using colima? Error: Running AWS SAM projects locally requires Docker. Have you got it installed and running? Enable AWS SAM local to run without Docker Desktop but Colima + Docker Daemon on MacOs # aws sam requires DOCKER_HOST to be set export DOCKER_HOST="unix://$HOME/.colima/docker.sock" Test lambda cdk synth --no-staging sam local invoke helloLambdaNodeJs --no-event -t ./cdk.out/*.template.json Start lambda...

September 9, 2022

Debug typescript file with breakpoints (credentials via 1password)

because: aws credentials - don’t store plaintext op run -- node inspect -r ts-node/register hello.test.ts (src: Debugger _ Node.js v18.9.0 Documentation & AWS & Typescript Masterclass - Testing and debugging Lambdas #31) From the terminal itself (src: How To Debug Node.js with the Built-In Debugger and Chrome DevTools _ DigitalOcean) from intellij (Run_Debug Configuration_ Attach to Node.js_Chrome _ IntelliJ IDEA) inspired by the AWS Toolkit for IntelliJ...

September 9, 2022

aws credentials - don't store plaintext

prerequisites aws cli 1password v8 with cli enabled optional direnv for folder specific config (export env var) export AWS_ACCESS_KEY_ID=op://your-vault-name/AWS_CLI/username export AWS_SECRET_ACCESS_KEY=op://your-vault-name/AWS_CLI/credential alias aws="op run -- /usr/local/bin/aws" alias cdk="op run -- /usr/local/bin/cdk" alias sam="op run -- /usr/local/bin/sam" alias ts-node="op run -- node -r ts-node/register" Done you can now run aws commands aws s3 ls

September 7, 2022

CLI: grab table of contents on a site

[ ...document.querySelectorAll('.section--section-title--8blTh') ].map(e=>e.outerText) (where the html element has the class ‘section–section-title–8blTh’

September 7, 2022

Course: AWS & Typescript Masterclass - CDK, Serverless, React

(AWS & Typescript Masterclass - CDK, Serverless, React) Section 1: Introduction Section 2: AWS CDK & CloudFormation CDK commands Backend Section 3: Serverless project with CDK and Typescript Section 4: Serverless: AWS Lambda - bundling, testing and debugging Section 5: Testing and debugging Lambdas cdk run local lambda with sam-cli Debug typescript file with breakpoints (credentials via 1password) Section 6: AWS DynamoDb with CDK and Lambda Type Guards Section 7: [[aws-typescript-masterclass-7....

September 7, 2022

Model: 3 future horizons

Model: 3 horizons of software development Horizon 1 covers the immediate future with products and services that will deliver results the same year; Horizon 2 covers the next few periods, with an expanding reach of the products and services; and Horizon 3 covers many months ahead, where experimentation is needed to assess market fit and suitability of new services, products, and features. (origin: Book: Lean Enterprise - Jez Humble & Joanne Molesky & Barry O’Reilly) (src: [[book-team-topologies-matthew-skelton-manuel-pais....

September 5, 2022

Model: Brooks law - adding manpower to a late software project makes it later

Model: Brooks law adding new people to a project doesn't immediately increase its capacity in fact, it quite possibly reduces capacity during an initial stage ramp-up period necessary to bring people up to speed, communication lines inside the team also increase significantly with every new member. emotional adaptation required both from new and old team member (the storming stage of Model_ Tuckman’s Performance Model) (origin: Book_ The Mythical Man-Month - Frederick Brooks) (src: [[book-team-topologies-matthew-skelton-manuel-pais....

September 5, 2022

Model: Dunbar's number - 5, 15, 50, 150

Humans can only manage about 150 relationships Even online (src: Video_ Start With Why - Simon Sinek) inner circle 3-5 very close friends or family members sympathy group 7-10 close friends who care about each other’s fate hunting group 30-50 collegues who care about each other’s fate-how much it takes to achieve a goal clan 100-150 people who maintain stable inter-personal relationships-everybody knows eachother-peer pressure works tribe 500-2500 people who speak the same language or dialect (src: [[video-the-scaling-dilemma-mary-poppendieck....

September 5, 2022

Model: Tuckman's Performance Model - forming, storming, norming, performing

(src: Book_ Team Topologies - Matthew Skelton & Manuel Pais) Each stage has it’s own common feelings behaviors team tasks The feelings and behaviours are useful for recognizing which stage you’re in. And to confirm that it is completely okay to feel and behave this way! (src: Article: Using the Stages of Team Development _ MIT Human Resources)

September 5, 2022

Model: 5 kinds of test doubles

" The vocabulary for talking about this soon gets messy - all sorts of words are used: stub, mock, fake, dummy. " Test Double the generic term for any kind of pretend object used in place of a real object for testing purposes. five particular kinds of double (1) Dummy objects passed around but never actually used. eg. fill parameter lists (2) Fake objects working implementations shortcut which makes them not suitable for production eg....

September 2, 2022