generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
reset api key creates a number api key, but does not delete the old one. This means that there is a risk that the account is going to bump into the limits. 20 API Keys per identity by default https://cloud.ibm.com/docs/account?topic=account-cloudaccess#iam_limits
note that the previous script that was checking the presence of an existing api key had issues:
- Only looking at the first 100 api key
- Only looking at user api key, so a new api key is created very time that the resource is created when triggering the logic from an api key
| IAM_URL="https://private.$IBMCLOUD_IAM_API_ENDPOINT/v1/apikeys?account_id=$ACCOUNT_ID&scope=account&pagesize=100&type=user&sort=name" |