Deploying Virtual Scanner in Alibaba Cloud Infrastructure with CLI
The following Alibaba CLI command is used to create an instance in Alibaba Cloud. Within the UserData option, you should specify the PERSCODE and any proxy server configuration details, encoded in base64 format.
To create instance use the following command:
aliyun ecs RunInstances [OPTIONS]
Parameters
Field | Mandatory/Optional | Description |
---|---|---|
--ImageId | Mandatory | ID of the image used to create the instance. |
--InstanceType | Mandatory | instance type |
--SecurityGroupId | Mandatory | ID of the security group to which to assign the instance. |
--VSwitchId | Mandatory | ID of the vSwitch to which to connect the instance |
--InstanceName | Mandatory |
Name of the instance. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-) |
--UserData | Mandatory | User data of the instance. The user data must be encoded in Base64. |
--InstanceChargeType : |
Mandatory |
Billing method of the instance. Valid values:
|
--SystemDisk.Category | Mandatory |
The category of the system disk. Valid values:
|
--HttpTokens |
Optional |
|
Example: Launch a Qualys Scanner
aliyun ecs RunInstances --ImageId m-rj998yxv39wllkmjovmc --InstanceType 'ecs.g6e.large' --SecurityGroupId sg-rj9bc6itsb6aklrkzowo --VSwitchId vsw-rj9ureoqii8mg4i4v8ef2 --InstanceName qualys-scanner --UserData UEVSU0NPREU9NzA2NjQzMzM0MzM5OTg= --SystemDisk.Category cloud_essd
For more information regarding launching instances on Alibaba Cloud refer to RunInstances from Alibaba cloud documentation.