This is a blank project for CDK development with TypeScript.
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template
The Connector for creating and deleting AWS Users via SCIM is part of this CDK setup
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.
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
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
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.