Open lionelmace opened 12 months ago
Internal discussion https://ibm-cloudplatform.slack.com/archives/C53NF5MB4/p1700583212171669
Here is the current workaround:
The approach described above is not working
When I generate a token using an enterprise level API key, I cannot use this token to create an API key in a child account, as the token is bound to the enterprise account and does not allow to create an API key in another account (even if the user would be allowed).
Community Note
Description
Context: I create child cloud account under an Enterprise account.
The challenge is to specify in which account a resource should be created. Today, the provider block does not provide the ability to pass the accountId.
Example:
How can I tell Terraform now that the COS should be created in account A and not in account B? Because the API key xxx_api_key has access to both accounts. For me it seems that in this case the resource is always deployed in the enterprise account E, but we also need to deploy resources in the child accounts directly after we created them to set up the landing zones.