ibm-functions / package-cloud-object-storage

Deploy a Cloud Object Storage Package for IBM Functions.
Apache License 2.0
2 stars 9 forks source link

Python package: best practices for configuring endpoints #43

Closed ptitzler closed 5 years ago

ptitzler commented 5 years ago

Running into an issue like it is described in #33. I'm using the Python package and need to set a regional endpoint, but I'm unsure how to do that. The actions receive a cos object of type ibm_botocore.client.S3, which (I guess) was configured using the service credentials that I bound to the cloud-object-storage package. However since the default endpoint is X-region, I need to override it. I don't seem to have access to the service credentials and therefore can't instantiate my own COS client in the action.

What's the recommended way to switch endpoints for all actions?

ptitzler commented 5 years ago

Never mind. I missed the definition of getParamsCOS in the code editor ...