envs

IBM Cloud — API key

ibm/cloud · version 1

envs add ibm/cloud

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
IBMCLOUD_API_KEY required secret IBM documents this name on its Terraform provider pages rather than in the core CLI reference, so it is confirmed for that surface and assumed for others. IBM says not to commit the file holding it to a public repository. IC_API_KEY wins if both are set.. where to get it
IBMCLOUD_CR_TOKEN optional secret A compute resource token, or a path to one written with a leading at sign. Used with a trusted profile instead of an API key.. where to get it

The JSON the CLI reads