• UID3155
  • Fans0
  • Follows0
  • Posts2

How to grant ECS Service Account access to OSS?

More Posted time:Aug 3, 2017 14:23 PM
I have upload custom image to OSS. I am trying to import it from ECS but it keep complaining ECS Service Account cannot access OSS.
Please help.

Senior Engineer
Senior Engineer
  • UID105
  • Fans5
  • Follows0
  • Posts343
1st Reply#
Posted time:Aug 7, 2017 23:39 PM
Could you please create a ticket to the support team in web console ?

  • UID5366
  • Fans0
  • Follows0
  • Posts2
2nd Reply#
Posted time:Mar 21, 2018 5:11 AM
* What is ECS service account?
* What tool do you use to access OSS from  ECS? any CLI, SDK?

Assistant Engineer
Assistant Engineer
  • UID3277
  • Fans3
  • Follows0
  • Posts65
3rd Reply#
Posted time:Jun 10, 2018 7:42 AM
To use OSSUtil to manage/download/upload files from your ECS

Firstly, to create am access key for OSS util

1) Goto RAM console

2) Create a new user. While creating a new user, you can select automatic create an access key.

3) If you didn't create access key when creating a new user, click into User Detail tab,
click on Create Access Key

Secondly, run the following command to creates a configuration file and stores credentials
 # ossutil64 config

Lastly, use ossutil command line to upload file to OSS bucket

# ossutil64 cp -f /path/to/<your-data-file-name oss://<oss-bucket-name>

To download from OSS
 # ossutil64 cp ossutil cp oss://<oss-bucket-name>  /path/to/<your-data-file-name