The Serverless Framework needs access to account credentials for your Alibaba Cloud account so that it can create and manage resources on your behalf.
You need a Billing Account to use Alibaba Cloud Function Compute. See Create an Alibaba Cloud account
and Add billing information on how to create a Billing Account. For some regions in mainland China (including the plugin's default region of Shanghai) you will also have to go through Real Name Verification. To avoid this, use a region outside of Mainland China such as
ap-southeast-1 by setting the
region option in the
provider section of your
You need to enable the following services so that Serverless can create the corresponding resources.
You need to create credentials Serverless can use to create resources in your Project.
[default] aliyun_access_key_secret = <collected in step 1> aliyun_access_key_id = <collected in step 1> aliyun_account_id = <collected in step 3>
~/.aliyuncli/credentials. Remember the path you saved it to.
Open up your
serverless.yml file and update the
provider section with
the path to your credentials file (this path needs to be absolute!). It should look something like this:
provider: name: aliyun runtime: nodejs8 credentials: ~/.aliyuncli/credentials