I created IBM cloud object storage and a bucket. When I try to list the buckets in the storage it works but when trying to read or write from bucket I am getting access denied.
Ravithejs-MacBook-Pro:~$ ibmcloud cos put-object --bucket hog-cli-bucket-name --key firstOne --body /Downloads/apikey.json
FAILED
Access to your IBM Cloud account was denied. Log in again by typing ibmcloud login --sso.
I tried logging in with apikey and sso but running into same issue again