This is a solution to automate the blocking of AWS Identity Center user access when they leave your workplace. See the blog post on jSherz.com.
Install dependencies in the Lambda project:
cd lambdas
nvm use 18
corepack enable
yarn install
Head to the Terraform project and apply it all:
cd ../infrastructure
terraform init
terraform apply
Find your identity_store_id
in the Identity Center console. It will start
with d-
.