π©οΈ Create Your Cloud Server
Build a secure, scalable, and robust cloud server on AWS. This step-by-step guide ensures you configure your instance like a pro.
Note: Fleet Stack Software offers you the flexibility to host it on any cloud platform you prefer. This allows you to tailor the deployment to your specific needs, ensuring optimal scalability, performance, and control over your cloud environment.
π Quick Overviewβ
Setting up your server involves:
- Accessing AWS EC2 to manage compute resources.
- Launching and configuring an instance tailored to your needs.
- Setting up security for safe and authorized access.
- Connecting to your instance remotely.
β±οΈ Estimated Time: 10β15 minutes
π Prerequisitesβ
Before starting, ensure you have:
- An active AWS account.
- A stable internet connection.
- Remote Desktop Client (for Windows instances).
- Basic knowledge of AWS terms like EC2, key pairs, and security groups.
π₯ Video Tutorialβ
Watch a step-by-step video guide for a visual walkthrough:
π Step-by-Step Guideβ
Step 1: Log in to AWSβ
To create a cloud server, you'll first need to access AWS, the platform where the servers are hosted. This step involves logging into your account to use the tools available.
- Navigate to the AWS Management Console.
- Enter your credentials and sign in to access the AWS dashboard.
π‘ Pro Tip: Use the AWS Console mobile app for on-the-go management.
Step 2: Open the EC2 Dashboardβ
AWS EC2 (Elastic Compute Cloud) is the service where your virtual servers are created and managed. You'll need to navigate to this section to start building your server.
- From the top menu, click Services.
- Under Compute, select EC2.
- Navigate to the Instances section to manage existing or create new instances.
Step 3: Launch a New Instanceβ
An instance is your virtual server. Launching one means you're creating a computer in the cloud, specifying its size and operating system, just like setting up a new PC.
Configuration Steps:β
-
Click Launch Instance.
-
Fill in the following details:
- Name: Choose a recognizable name (e.g.,
MyAppServer
). - OS: Select Windows Server operating system:
- Windows Server (default for Remote Desktop).
- Instance Type:
- Start with
t2.medium
.
- Start with
- Name: Choose a recognizable name (e.g.,
-
Click Next to proceed to storage setup.
Step 4: Configure Storageβ
Storage is the space your server uses to store data, much like the hard drive of your computer. In this step, you decide how much space your server needs.
-
Specify the required disk size:
- General Purpose (SSD): 60 GB is typical for small projects.
- For database-heavy workloads, consider Provisioned IOPS SSD.
-
Add additional volumes if required, such as:
- A data volume for file storage.
- A backup volume for critical data.
Step 5: Set Up Key Pairβ
A key pair is like a lock and key for accessing your server. The server has a lock, and you keep the key (a .pem
file) on your computer for secure access.
- Select or create a key pair to secure your instance:
- Existing Key Pair: Choose from the dropdown if available.
- New Key Pair:
- Click Create Key Pair.
- Select
.pem
format for most platforms. - Download and store the
.pem
file securely.
β οΈ Important: Losing the .pem
file means you cannot access your instance.
Step 6: Configure Security Groupsβ
A security group is like a firewall for your server. It controls who can access your server and which activities are allowed. You'll configure rules here to ensure secure communication.
Configuration Steps:β
- Go to the Security Groups section under EC2.
- Click Create Security Group and configure rules:
Protocol | Port Range | Source | Purpose |
---|---|---|---|
RDP | 3389 | 0.0.0.0 | Remote Desktop Access |
HTTP | 80 | 0.0.0.0/0 | Enable access to web server |
HTTPS | 443 | 0.0.0.0/0 | Secure web traffic |
Microsoft SQL Server | 1433 | 0.0.0.0/0 | Server for database engine |
Custom TCP | 5000-6000 | 0.0.0.0/0 | Custom Port Range |
π‘ Best Practice: Restrict access to your public IP (e.g., 203.0.113.25/32
) instead of 0.0.0.0/0
for security.
Step 7: Review and Launch Your Instanceβ
Before launching, youβll review all settings to ensure everything is configured correctly. After that, AWS will create your server and make it ready to use.
-
Double-check all configurations, including:
- Instance type
- Storage allocation
- Security groups
- Key pair
-
Click Launch Instance.
-
Wait for the instance to initialize.
Step 8: Allocate and Associate Elastic IPβ
An Elastic IP is a permanent address for your server. Assigning one ensures your serverβs address stays the same, even if it restarts.
- Go to Elastic IPs under the EC2 menu.
- Click Allocate Elastic IP Address.
- Associate the allocated IP to your instance:
- Select the instance from the dropdown menu.
- Save your settings.
π Why Elastic IP?: It provides a static IP address that persists even if the instance is stopped or restarted.
Step 9: Connect to Your Instanceβ
Once your server is running, you can access it remotely, just like logging into another computer. Youβll use tools like Remote Desktop to do this.
-
Return to the Instances tab and copy the Public IP Address.
-
Open Remote Desktop Connection:
- Paste the IP Address.
- Enter the username (
Administrator
by default). - Use the private key to decrypt the password in the RDP Client.
-
Click Connect to access your server.
π οΈ Troubleshooting & Best Practicesβ
Common Issues and Solutionsβ
Problem | Solution |
---|---|
Cannot connect to instance | Check that port 3389 (RDP) is open in the security group. |
Lost .pem file | Use AWS Systems Manager Session Manager if enabled or recreate your instance. |
Instance not starting | Verify if your instance quota or region availability is sufficient. |
π Pro Tips for a Seamless Experienceβ
- Backups: Regularly create snapshots of your instance volumes for disaster recovery.
- Monitoring: Enable CloudWatch to monitor instance performance and set alerts for CPU or memory usage spikes.
- Security: Use AWS Identity and Access Management (IAM) to enforce least privilege policies.