We are using the ibm_iam_account_settings data lookup here to fetch the account ID which we then pass to the reset_api_key null_resource block.
You need to be an account admin to run this data lookup. If you are not, you get this error:
│ Error: You are not authorized to use this API.
│
│ with module.ocp_base.data.ibm_iam_account_settings.iam_account_settings,
│ on .terraform/modules/ocp_base/main.tf line 283, in data "ibm_iam_account_settings" "iam_account_settings":
│ 283: data "ibm_iam_account_settings" "iam_account_settings" {
Is there another way to determine the account ID? Perhaps directly in reset_iks_api_key.sh?