wiki.getshifting.com

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


start

SHIFT-WIKI - Sjoerd Hooft's InFormation Technology

This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.


AWS Lambda - Invoke new Lambda

Summary: How to use a lambda to invoke a new lambda
Date: Around 2022
Refactor: 20 February 2025: Checked links and formatting.

It would be better to do this using Step Functions but sometimes quick and dirty is good enough. See the code below to invoke a new Lambda function onze your current one is done.

// Lambda Variables
var aws = require('aws-sdk');
var lambda = new aws.Lambda({
  region: 'eu-west-1' //change to your region
});
 
// Invoke nextlambda if you don't want to use Step Functions
 
// function invoke Email
function invokeLambdaEmail(requestBody, callback, error){
    var params = {
        FunctionName: 'sendoutEmail',
        InvocationType: 'Event',
        Payload: JSON.stringify(requestBody, null, 2)
      };
      lambda.invoke(params, function(err, data) {
        if (err) console.log(err, err.stack); // an error occurred
        else     console.log(data);           // successful response
      });
}
2025/06/01 11:59

Getting Started With AWS

Summary: How to get started with the AWS Cloud.
Date: Around 2019
Refactor: 20 February 2025: Checked links and formatting.

This article describes some basic steps on getting started with AWS. Used technologies:

  • AWS Accounts
  • AWS Organizations
  • Billing: Tax and Budget
  • AWS CloudTrail

→ Read more...

2025/06/01 11:59

Add a Node.JS Layer to Lambda

Summary: How to Add a Node.JS layer to AWS Lambda.
Date: Around 2022
Refactor: 20 February 2025: Checked links and formatting.

In this article I'll show how to add a Node.JS layer to Lambda. By default, Lambda supports Node.JS 12 and 10 native modules and the AWS SDK for JavaScript in Node.JS (subject to change). However, there are many modules for Node.JS available that extend the possibilities. I'll show how to add the Node.JS module paynl to Lambda.

→ Read more...

2025/06/01 11:59

Azure ARM deployment using Azure DevOps YAML Pipeline

Summary: How to setup a completely new azure production environment, automated, using arm templates, powershell, azure CLI and Azure DevOps.
Date: Around 2021
Refactor: 20 February 2025: Checked links and formatting.

This article is all about setting up a new azure production like environment in a new subscription, with a few twists. It's all about automation, saving money, but still trying to touch on many topics. Automation will be a combination of PowerShell scripts, Azure CLI scripts, ARM templates and in the end these will be combined in an Azure DevOps pipeline. 

The scope will include:

  • Creation of a management group to hold the subscription and policies
  • Policies for
    • Allowed locations
    • Deny NSGs with Inbound RDP from the internet
    • Audit VMs with unmanaged disks
  • A recovery services vault
  • A VM with an additional disk
    • Which will be backed up
    • Which will automatically shut down at 17:30
  • Network Security Groups
  • Application Group
  • A Budget
  • A KeyVault
  • An Azure Dashboard which will provide an overview

→ Read more...

2025/06/01 11:59
start.txt · Last modified: by sjoerd