Aliyun ECS
Configure Aliyun Elastic Compute Service (ECS).
Apply for AccessKey
- Visit Aliyun RAM AccessKey Management.
- Click Create AccessKey.
- Copy the generated AccessKey ID and AccessKey Secret.

Obtain Security Group ID and Region ID
- Go to Aliyun ECS Console / Security Groups.
- Find the security group bound to your cloud server on the page.
- Copy the Security Group ID (the blue text on the left in the image).

- At the same time, check the URL in your browser's address bar to get the Region ID.
For example, for the following URL, the Region ID is cn-hongkong
:
https://ecs.console.aliyun.com/securityGroup/region/cn-hongkong
Configure Firewall Rules
- In the security group details page, add inbound rules in the Access Rules section below.
- Set specific comment names for port rules that need to be automatically managed by Solo (for rule identification).
- Record the comment names of all rules that need to be managed by Solo.
About Security Group Rule Configuration
This is an inbound security group rule page

For protocol and access destination, please fill in normally.
In the access source, there are IPv4 and IPv6 options.
You can choose either one, depending on which protocol you use to access your server. Solo will decide whether to update the firewall rules to IPv4 or IPv6 based on the protocol of the firewall rules.
If you prefer, you can also create two rules simultaneously, using IPv4 and IPv6 respectively.
Comment Names Can Be Repeated
Multiple rules can use the same comment name. Solo will automatically identify and modify all rules matching that name.
Edit Configuration File
Add this configuration to Solo's TOML file:
[[servers]]
name = "Server Name"
machine_type = "aliyunecs"
machine_id = "Security Group ID"
region = "Security Group Region ID"
secret_id = "AccessKey ID"
secret_key = "AccessKey Secret"
protocol = "both"
rules = [
"rule_remark1", # e.g. ssh
"rule_remark2", # e.g. mysql
]
Parameter Description
name
: Custom server name.machine_type
: Server type, fixed asaliyunecs
.machine_id
: Security Group ID.region
: Security group Region ID.secret_id
: Applied AccessKey ID.secret_key
: Applied AccessKey Secret.protocol
: Firewall protocol version, can bev4
(only process IPv4 protocol rules),v6
(only process IPv6 protocol rules), orboth
(process both IPv4 and IPv6 protocol rules).rules
: List of security group rule comment names that need to be managed.
Complete Configuration File Example
Based on the above example information, configure as follows:
[[servers]]
name = "Aliyun ECS"
machine_type = "aliyunecs"
machine_id = "sg-j6c7mt54eo48a2070jc8"
region = "cn-hongkong"
secret_id = "LTA15t9Bk3XGIWVYbDzKumin"
secret_key = "bOjlt4RbICjsdNp90s)(IOxjl)(Cqnnz"
protocol = "both"
rules = [
"ssh",
"mysql",
]