git clone https://github.com/tmieulet/xk6-cognito.git && cd xk6-cognito
docker run --rm -v $(pwd):/scripts -it --entrypoint sh golang:1.17-alpine
cd /scripts/
go install go.k6.io/xk6/cmd/xk6@latest
xk6 build v0.32.0 --with github.com/tmieulet/xk6-cognito="/scripts"
Example
In examples, change all exToChange then run mkdir -p target && xk6 run --vus 1 --duration 2s /scripts/examples/loadTest.js