Are you getting an "access denied" error when trying to create a COS target?
When creating an IBM Cloud Object Storage target using service-to-service authorization, the message Your request to test a target has failed because the target details are not valid. The service could not write to the Cloud Object Storage bucket that is configured. {'error_code':'403','error_message':'Access Denied'}
is returned.
Your request fails with an error message that indicates access to the IBM Cloud Object Storage bucket was denied.
You define a bucket in an account but have not set up service-to-service authorization to that bucket. Then you attempt to create an IBM Cloud Object
Storage target pointing to the bucket using service-to-service authorization (--service-to-service-enabled TRUE
), instead of using the COS bucket API key..
Either setup service-to-service authorization to the bucket and retry the target create request, or use the COS bucket API key on the create request.