Lab 1: Cloud Account Setup
Create projects, users, and roles
Lab 2: Virtual Machine Deployment
Create, list, and manage VMs
Lab 3: Storage Operations
Create buckets and manage objects
Lab 4: Network Configuration
Configure VPCs, subnets, security groups
Lab 5: Identity & Access Management
Manage users, roles, and permissions
Lab 1: Cloud Account Setup
Learn how to set up your cloud environment by creating projects, users, and assigning roles.
1
List existing projects
Start by viewing all current projects in your cloud account.
cloud project list
PROJECT_ID PROJECT_NAME STATUS
default-project Default Project active
This command shows all projects you have access to.
2
Create a new project
Create a new project called "production" for your workloads.
cloud project create production
Project 'production' created successfully
PROJECT_ID: prod-12345
STATUS: active
3
List users
View all users in your cloud account.
cloud user list
USER_ID USERNAME EMAIL STATUS
admin-001 admin admin@cloud.local active
4
Create a new user
Create a user named "developer" for your development team.
cloud user create developer
User 'developer' created successfully
USER_ID: dev-67890
EMAIL: developer@cloud.local
STATUS: active
5
Assign a role to the user
Grant the "developer" user the "compute-admin" role.
cloud role assign developer compute-admin
Role 'compute-admin' assigned to user 'developer' successfully
Permissions granted:
- compute.instances.create
- compute.instances.delete
- compute.instances.list
Users need appropriate roles to perform actions in the cloud.
Lab 2: Virtual Machine Deployment
Deploy and manage virtual machines in your cloud environment.
1
List existing VMs
Check what virtual machines are currently running.
cloud vm list
No virtual machines found.
2
Create a small VM
Deploy a small-sized VM named "web-server".
cloud vm create --name web-server --size small
Creating virtual machine 'web-server'...
VM created successfully!
INSTANCE_ID: vm-a1b2c3d4
NAME: web-server
SIZE: small (1 vCPU, 2GB RAM)
IP: 10.0.1.15
STATUS: running
Small VMs are perfect for lightweight applications and testing.
3
Create a medium VM
Deploy a medium-sized VM named "app-server".
cloud vm create --name app-server --size medium
Creating virtual machine 'app-server'...
VM created successfully!
INSTANCE_ID: vm-e5f6g7h8
NAME: app-server
SIZE: medium (2 vCPU, 4GB RAM)
IP: 10.0.1.16
STATUS: running
4
List all VMs
Verify both VMs are running.
cloud vm list
INSTANCE_ID NAME SIZE IP STATUS
vm-a1b2c3d4 web-server small 10.0.1.15 running
vm-e5f6g7h8 app-server medium 10.0.1.16 running
5
Delete a VM
Remove the web-server VM to free up resources.
cloud vm delete web-server
Deleting virtual machine 'web-server'...
VM 'web-server' deleted successfully!
Always delete unused VMs to avoid unnecessary charges.
Lab 3: Storage Operations
Manage cloud storage buckets and objects for your applications.
1
List storage buckets
Check existing storage buckets in your account.
cloud storage list
No storage buckets found.
2
Create a storage bucket
Create a bucket named "app-data" for application files.
cloud storage create app-data
Creating storage bucket 'app-data'...
Bucket created successfully!
BUCKET_NAME: app-data
REGION: us-east-1
SIZE: 0 GB
STATUS: active
Bucket names must be globally unique across all cloud accounts.
3
Create a backup bucket
Create another bucket named "backups" for storing backups.
cloud storage create backups
Creating storage bucket 'backups'...
Bucket created successfully!
BUCKET_NAME: backups
REGION: us-east-1
SIZE: 0 GB
STATUS: active
4
List all buckets
Verify both storage buckets have been created.
cloud storage list
BUCKET_NAME REGION SIZE CREATED STATUS
app-data us-east-1 0 GB 2024-01-15 10:30 active
backups us-east-1 0 GB 2024-01-15 10:31 active
5
Delete a bucket
Remove the "backups" bucket (make sure it's empty first).
cloud storage delete backups
Deleting storage bucket 'backups'...
Bucket 'backups' deleted successfully!
Buckets must be empty before they can be deleted.
Lab 4: Network Configuration
Configure virtual networks, subnets, and security groups for your infrastructure.
1
List VPCs
View existing Virtual Private Clouds in your account.
cloud network vpc list
VPC_ID VPC_NAME CIDR_BLOCK STATUS
vpc-default default-vpc 10.0.0.0/16 active
2
Create a VPC
Create a new VPC named "prod-vpc" with CIDR block 172.16.0.0/16.
cloud network vpc create --name prod-vpc --cidr 172.16.0.0/16
Creating VPC 'prod-vpc'...
VPC created successfully!
VPC_ID: vpc-a1b2c3d4
VPC_NAME: prod-vpc
CIDR_BLOCK: 172.16.0.0/16
STATUS: active
CIDR notation defines the IP address range for your VPC.
3
Create a subnet
Create a subnet named "web-subnet" in the prod-vpc.
cloud network subnet create --name web-subnet --vpc prod-vpc --cidr 172.16.1.0/24
Creating subnet 'web-subnet' in VPC 'prod-vpc'...
Subnet created successfully!
SUBNET_ID: subnet-e5f6g7h8
SUBNET_NAME: web-subnet
VPC_ID: vpc-a1b2c3d4
CIDR_BLOCK: 172.16.1.0/24
AVAILABLE_IPS: 251
4
Create a security group
Create a security group named "web-sg" to control traffic.
cloud network secgroup create --name web-sg --description "Web server security group"
Creating security group 'web-sg'...
Security group created successfully!
SECGROUP_ID: sg-i9j0k1l2
SECGROUP_NAME: web-sg
DESCRIPTION: Web server security group
DEFAULT_RULES:
- EGRESS: All traffic allowed
- INGRESS: Deny all (add rules to allow)
5
Add security group rule
Allow HTTP traffic (port 80) to the web-sg security group.
cloud network secgroup add-rule --name web-sg --port 80 --protocol tcp --source 0.0.0.0/0
Adding rule to security group 'web-sg'...
Rule added successfully!
RULE_ID: rule-m3n4o5p6
PROTOCOL: tcp
PORT: 80
SOURCE: 0.0.0.0/0 (anywhere)
ACTION: allow
Security groups act as virtual firewalls for your cloud resources.
Lab 5: Identity & Access Management
Master IAM concepts by creating users, groups, and managing permissions.
1
List IAM users
View all IAM users in your account.
cloud iam user list
USER_ID USERNAME CREATED ROLES
admin-001 admin 2024-01-01 09:00 admin
dev-67890 developer 2024-01-15 10:15 compute-admin
2
Create a new IAM user
Create a user named "auditor" for compliance monitoring.
cloud iam user create auditor
Creating IAM user 'auditor'...
User created successfully!
USER_ID: aud-q7r8s9t0
USERNAME: auditor
EMAIL: auditor@cloud.local
STATUS: active
ACCESS_KEY_ID: AKIA1234567890ABCDEF
3
List available roles
Check what roles are available in the system.
cloud iam role list
ROLE_NAME DESCRIPTION PERMISSIONS
admin Full system access All
compute-admin VM management access compute.*
storage-admin Storage management access storage.*
network-admin Network management access network.*
read-only Read-only access to all *.list, *.get
4
Assign read-only role
Grant the "auditor" user read-only access.
cloud iam role assign auditor read-only
Assigning role 'read-only' to user 'auditor'...
Role assigned successfully!
USER: auditor
ROLE: read-only
PERMISSIONS:
- *.list (Can list all resources)
- *.get (Can view resource details)
- Deny: create, delete, update operations
5
Create a custom group
Create a group named "developers" for team management.
cloud iam group create developers
Creating IAM group 'developers'...
Group created successfully!
GROUP_ID: grp-u1v2w3x4
GROUP_NAME: developers
MEMBERS: 0
ATTACHED_ROLES: none
Groups make it easier to manage permissions for multiple users.
cloud-cli@simulator:~$
██████╗██╗ ██████╗ ██╗ ██╗██████╗ ██████╗██╗ ██╗ ██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ██╔════╝██║ ██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██║ ██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██║ ██║ ╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ╚██████╗███████╗██║ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝╚══════╝╚═╝
Welcome to the Cloud Computing Lab Simulator v1.0
Type 'help' for available commands or follow the lab instructions on the left.
Tip: Commands are case-sensitive. Press TAB for auto-complete suggestions.
cloud-cli@simulator:~$