Configuring AWS to create desktop VMs
Agents are designed to be capable of operating on desktop VMs. Running a full VM locally can consume a fair amount of resources, it’s often preferred to run the VM in the cloud. This section will walk you through how to set up a AWS account from scratch to run a VM.
Prerequisites
- A valid email address
- A credit card for billing (AWS offers a free tier for new users)
Step 1: Create an AWS Account
- Go to the AWS website.
- Click on the Create an AWS Account button.
- Follow the on-screen instructions to create a new AWS account.
- Set up your billing information to access the free tier.
Step 2: Create Access Keys for Your IAM User
- Sign in to the AWS Management Console.
- Go to the IAM service from the Services menu.
- Click on Users in the left-hand menu.
- Select your user name from the list.
- Click on the Security credentials tab.
- Scroll down to the Access keys section and click on Create access key.
- Download the CSV file containing the user’s access key ID and secret access key.
Step 3: Install and Configure AWS CLI
- Download and install the AWS CLI.
- Open a terminal or command prompt.
- Configure the AWS CLI with your user’s access key ID and secret access key:
Follow the prompts to enter your access key ID, secret access key, default region name, and default output format.
Step 4: Verify Permissions and Create an EC2 Instance
- Verify that the CLI is authenticated and can access the EC2 service:
Additional Considerations: Quotas
By default, AWS provides sufficient quotas for most users. However, if you need to increase quotas for your account:
- Go to the Service Quotas service from the Services menu.
- Find the quota you need to increase (e.g.,
Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances
). - Click on the quota, then click on Request quota increase.
- Fill out the request form and submit it. AWS will review your request and notify you of the outcome.
Conclusion
You have now successfully created an AWS account, set up the necessary permissions, and authenticated the CLI to create EC2 instances. For more advanced configurations and management, refer to the AWS documentation.
If you have not already run through our Quickstart to setup surfkit, please do that now.
Once you’ve done that, you’re ready to create an AWS cloud VM for an agent to use with the following command:
Replace my-surfkit-vm
with whatever friendly name you want to use.