daf4d4b94b
draft pr for the test demo harness for permit.io * harness working for permit.io demo * user is const * aws profile * permit import code for research * cleanup * create user tool poc * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/permit-io-demo * tests for user creation * add audit logs and dry-run * add tests sanity check the requested roles * update docs for delete * disable/enable users and test * more tests and make user name required only for create operations * clean up * add docs * aws tag tests * audit -> slog * attempt build fix devbox * edit * just devbox * remove lock change for merge * Merge branch 'main' of bitbucket.org:aarete/query-orchestration into feature/permit-io-demo
15 lines
674 B
Bash
Executable File
15 lines
674 B
Bash
Executable File
# permit stuff
|
|
export PERMIT_KEY="permit_key_redacted"
|
|
#
|
|
## Cognito stuff
|
|
export COGNITO_USER_POOL_ID="us-east-2_21upuTkkT"
|
|
#
|
|
## aws keys
|
|
##export AWS_ACCESS_KEY_ID=
|
|
##export AWS_SECRET_ACCESS_KEY=
|
|
##export AWS_SESSION_TOKEN=
|
|
export AWS_REGION=us-east-2
|
|
export AWS_PROFILE=aarete
|
|
# must do a project list to get the guid values for the project and environment before making the call to import.
|
|
#go run ./... -project ebde1e1e9623491cab6f8112e67bd61c -env 9d6801123cfd4a0ea2ef1df2f430e9d3 -csv ./users.to.import.csv --delete-users --dry-run
|
|
go run ./... -project ebde1e1e9623491cab6f8112e67bd61c -env 9d6801123cfd4a0ea2ef1df2f430e9d3 -csv ./users.to.import.csv --delete-users |