mirror of
https://github.com/88lex/sa-gen.git
synced 2025-02-22 22:53:03 +08:00
Create projects, service accounts, jsons and a group list in csv using gcloud sdk
LICENSE | ||
README.md | ||
sa-gen |
sa-gen
Create up to 100 service accounts for a google project using gcloud SDK
forked from DashLt at https://gist.github.com/DashLt/4c6ff6e9bde4e9bc4a9ed7066c4efba4 and
forked from mc2squared at https://gist.github.com/mc2squared/01c933a8172a26af88285610a0e5af8d
requires gcloud command line tools; go to https://cloud.google.com/sdk/docs/quickstarts to get them
max 100 service accounts per project
run gcloud init --console-only first and select a project
Create a folder for your keys before running the script
KEYS_DIR=/opt/sa
If you want to create more than 100 jsons then increment COUNT for each batch. For the first batch COUNT=1. Second batch COUNT=101. Third batch COUNT=201 ...