-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
False
-
None
-
False
{}USER STORY:{}
As a user of the Alibaba account, I want to clean up RAM users so that we do not run into any account limits.
{}DESCRIPTION:{}
RAM users leak and are not cleaned up properly.
{}Required:{}
A script to remove users.
Suggestions:
ci-ops*
test-*
NOT "shared CI user"
NOT pruner bot
Any user data that ends in "-credentials" that are > than 24-48 hours
{}Nice to have:{}
Push changes to the pruner script.
{}ACCEPTANCE CRITERIA:{}
I would expect the results from this query to be reduced to around ~25ish users (current CI run).
aliyun ram ListUsers | jq '.Users.User[].DisplayName' | wc -l
100
{}Take special note not to delete the "shared CI user"{}
{}ENGINEERING DETAILS:{}
Can be written using a library or the CLI.
https://github.com/aliyun/aliyun-cli