Are you getting a CosEndpoint.APIKey is not valid
error when creating a COS target?
When creating an IBM Cloud Object Storage target, the message Your request has failed because the value of CosEndpoint.APIKey is not valid. Set a valid value in your target request and try again.
is returned.
Your request fails with an error message and a code of invalid_value
.
You are trying to configure a COS target and have not specified --api-key
or --service-to-service-enabled TRUE
on the request.
Retry the request after adding --api-key
with your COS bucket API key. or --service-to-service-enabled TRUE
as appropriate for your environment. Specifying
--service-to-service-enabled TRUE
requires that you have service-to-service authorization configured for your COS bucket.