Start ECS using ak/sk signing

Sample on how to start an ECS instance using an ak/sk request signing.

For complete source code, see samples-doc/aksksigning/ecs on GitHub.

Requirements

Environment variables

Environment variable name

Value

Default

ECS_INSTANCE_ID

<ID of ecs instance>

OTC_SDK_PROJECTID

<Project ID>

Needed if ecs instance is in a sub project see Obtaining a Project ID

OTC_SDK_AK

<Access Key>

see: Generating AK and SK

OTC_SDK_SK

<Secret Key>

see: Generating AK and SK

Running

# Running the sample
python3 startECS_AKSK.py