08 ‐ Order of steps to create a VM - SanjeevOCI/Study GitHub Wiki
Here is the order to create a VM in AWS, Azure, OCI, and GCP, along with the prerequisites for each:
1. AWS (EC2 Instance)
Order:
- VPC: Create a Virtual Private Cloud (VPC).
- Subnet: Create a subnet within the VPC.
- Security Group: Define inbound/outbound rules for the VM.
- Key Pair: Generate a key pair for SSH access.
- Route Table: Ensure a route to the Internet Gateway (if public access is needed).
- Elastic IP (Optional): Allocate if a static public IP is required.
Prerequisites:
- AMI (Amazon Machine Image) for the OS.
- Instance type (e.g., t2.micro).
- IAM role (if needed for permissions).
2. Azure (Virtual Machine)
Order:
- Resource Group: Create a resource group to organize resources.
- VNet: Create a Virtual Network (VNet).
- Subnet: Create a subnet within the VNet.
- NSG: Configure a Network Security Group (NSG) for traffic rules.
- Public IP (Optional): Assign if public access is required.
- Storage Account (Optional): For custom images or data disks.
Prerequisites:
- OS image (from Azure Marketplace or custom).
- VM size (e.g., Standard_B2s).
- SSH key or username/password for access.
3. OCI (Compute Instance)
Order:
- VCN: Create a Virtual Cloud Network (VCN).
- Subnet: Create a subnet within the VCN.
- Security List/NSG: Define traffic rules for the subnet or instance.
- Route Table: Ensure a route to the Internet Gateway (if public access is needed).
- Public IP (Optional): Assign if public access is required.
Prerequisites:
- Custom or Oracle-provided image.
- Shape (e.g., VM.Standard.E2.1).
- SSH key for access.
4. GCP (Compute Engine)
Order:
- VPC: Use the default VPC or create a custom one.
- Subnet: Use the default subnet or create a custom one.
- Firewall Rules: Define rules for inbound/outbound traffic.
- Static IP (Optional): Reserve if a static public IP is required.
Prerequisites:
- OS image (from GCP Marketplace or custom).
- Machine type (e.g., e2-micro).
- SSH key for access.
Summary of Things to Be Ready
Cloud | Networking (VPC/Subnet) | Security (Firewall/NSG) | Access (Key Pair/SSH) | Other (Public IP, Image, etc.) |
---|---|---|---|---|
AWS | VPC, Subnet | Security Group | Key Pair | AMI, Elastic IP (optional) |
Azure | VNet, Subnet | NSG | SSH Key/Password | Resource Group, Public IP |
OCI | VCN, Subnet | Security List/NSG | SSH Key | Public IP (optional) |
GCP | VPC, Subnet | Firewall Rules | SSH Key | Static IP (optional) |
This ensures all required components are ready before creating a VM in each cloud provider.