Skip to content

pexon-consulting/aws-landingzone

Repository files navigation

Welcome to your CDK TypeScript project

This is a blank project for CDK development with TypeScript.

The cdk.json file tells the CDK Toolkit how to execute your app.

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • npx cdk deploy deploy this stack to your default AWS account/region
  • npx cdk diff compare deployed stack with current state
  • npx cdk synth emits the synthesized CloudFormation template

Personio Connector

The Connector for creating and deleting AWS Users via SCIM is part of this CDK setup

Setup

workflow.png

The Event should be pretty close to the Personio API and will be mapped to an SCIM User struct, according to the AWS Docs
This Lambda function performs the following actions based on the event it receives:

Create a user: Adds a new user to the SCIM API.
Delete a user: Removes a user from the SCIM API.

Secrets

The CDK Setup will create a Lambda function and required Secrets in the AWS SecretsManager. The Key & Value still have to be filled manually afterward.

{
"token": "scim-bearer-token",
"tenant_id": "tenant-id"
}

The tenant id can be obtained from the SCIM url

Build

go mod init personio-connector-lambda  
go mod tidy  
cd personio-connector-lambda  
go build -o main  
Compress-Archive -Path main -DestinationPath personio-connector-lambda.zip  

TODO

Currently the Event the lambda receives is not yet clear, since the Make Integration is not yet implemented.
There could be the changes to the Personio user struct and a way to distinguish between user deletion and creation needs to be implemented.
Also Check for other Todos in the Code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •