How Do I Access the OBS Bucket of Another Account from a ModelArts Notebook Instance?
If you select OBS when creating a notebook instance, you can access only the OBS buckets of your own account.
To access OBS files of another account from a notebook instance, you must have read and write permissions for the target OBS bucket.
- Contact the creator of the OBS bucket to grant the read and write permissions for the OBS bucket to the current account. For details, see Granting Other Accounts the Read/Write Permission for a Bucket. This section describes how a Huawei Cloud account grants its OBS bucket permissions to other Huawei Cloud accounts. If you are an IAM user or in other scenarios, see section "Configuration Cases in Typical Permission Control Scenarios" in Object Storage Service Permissions Configuration Guide for instructions about how to grant OBS bucket permissions.
- After obtaining read and write permissions for the OBS bucket, use the MoXing API on your notebook instance to access the OBS bucket and read its data. Example command:
import moxing as mox
mox.file.copy_parallel('obs://bucket_1/dataset', 'obs://bucket_2/dataset')
bucket_1 indicates the OBS bucket of another account, and bucket_2 indicates your own OBS bucket.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot