Networking
Resources
Resource
Command
Alias
Description
Typical Workflow
# 1. Create a VPC with a subnet
ace vpc create --name prod-vpc \
--subnet-name prod-subnet \
--subnet-cidr 10.0.0.0/24
# 2. Create a router and attach the external gateway
ace vpc router create --name prod-router
ace vpc router set-gateway --router <router-id> --network <external-network-id>
# 3. Connect your subnet to the router
ace vpc router add-interface --router <router-id> --subnet <subnet-id>
# 4. Create a security group with SSH and HTTP access
ace sg create --name web-sg
ace sg rule-add --sg <sg-id> --protocol ssh
ace sg rule-add --sg <sg-id> --protocol http
# 5. Launch an instance (using the VPC and security group)
ace instance create --name web-server \
--flavor C4i.medium \
--image Ubuntu-24.04-LTS \
--network <vpc-id> \
--security-group <sg-id> \
--key my-key
# 6. Allocate and associate a floating IP
ace fip create --network <external-network-id>
ace fip associate --ip <floating-ip> --instance <instance-id>
# 7. (Optional) Set up a load balancer
ace lb create --name web-lb --subnet <subnet-id> --type ALB
ace lb listener create --name http-listener --protocol HTTP --port 80 --lb <lb-id>
ace lb pool create --name web-pool --protocol HTTP --algorithm ROUND_ROBIN --listener <listener-id>Global Flags
Flag
Short
Description
Last updated