# Create your first AWS Cloud Computer
---
### Prerequisites
- A computer with a browser and wifi
- Access to your email (you'll request a one time password to access an AWS account we provide for you)
- No AWS experience necessary
- There are no costs and you do not have to divulge any personal information
- We'll ask you complete a survey before we finish. We love feedback and want to know what else you want to experience. (optional)
---
### Learning Objectives
Here's what you'll do during the event.
- Navigate into an AWS Account
- Configure a virtual machine in the cloud, its called an Amazon EC2 instance (EC2 = Elastic Compute Cloud)
- Launch your EC2 instance with a webserver using some code provided
- Access your webserver
- Learn how to diagnose, reconfigure and update your EC2 instance
---
### Build a Server in the Cloud
You're going to create a web server that you can access over the internet. Here's how you'll do that:
----
#### Access an AWS Account
- Access the AWS Event Engine at dashboard.eventengine.run
- Enter the event hash which your hosts will share with you
- Login using a One Time Password OTP emailed to your preferred email address
- Open the AWS Console
----
#### Build an Amazon EC2 Instance
- Navigate to EC2 > Instances in the AWS Console
- Click Launch instance
- Step 1: Choose an Amazon Machine Image (AMI) page, select the Amazon Linux 2 64bit (x86) AMI
- Step 2: Leave t2.micro selected, and
- click Next: Configure Instance Details
----
##### Configure the Network
On Step 3: Configure Instance Details page make the following selections:
- Network: default
- Subnet: No preference
- Auto-assign Public IP: Enable
- Expand Advanced details, and
- paste the following bash script into the user data box:
----
```
#!/bin/bash
yum update -y
yum install -y httpd
yum install -y wget
chkconfig httpd on
cd /var/www/html
service httpd start
```
<div style="page-break-after: always"></div>
----
##### Configure Storage and Naming
Click Step 4: Next: Add Storage, and then click Step 5: Next: Add Tags.
- On the Add Tags page, select Add Tag then add the following:
- Key: Name
- Value: Webserver
----
##### Configure the Security Group
Click Step 6: Next: Configure Security Group.
- On the Configure Security Group page, click Create a new security group, and set the following values:
- Security group name: myvm
- Description: my ec2 instance
- Click Add Rule, and set the following values:
- Type: HTTP
- Source: My IP
----
##### Check and Launch your Server
Click Step 7: Review and Launch, and then Launch.
- In the key pair dialog, select Proceed without a key pair.
- Select the check box to acknowledge we won't be assigning a key pair to this instance
---
### Manage the EC2 Instance
- Once the instance is running
- Click View Instance
- When you see your EC2 instane has successfully passed both status checks, inspect the following:
----
#### Reboot your Server
- Note the IPv4 public IP of the instance.
- With the instance selected,
- click Actions > Instance State > Reboot.
- Does the IP change?
----
#### Stop and Start your Server
- Click Actions > Instance State > Stop.
- After it’s stopped,
- click Actions > Instance State > Start.
- Does the IP change?
----
#### Resize your Server
- Click Actions > Instance State > Stop.
- Once it’s stopped,
- click Actions > Instance Settings > Change Instance Type.
- Change the instance type to t3.small, and click Apply.
---
{"metaMigratedAt":"2023-06-15T23:22:18.459Z","metaMigratedFrom":"Content","title":"Create your first AWS Cloud Computer","breaks":true,"contributors":"[{\"id\":\"0ea3aa8d-94dc-4226-b43a-014006dc3f2e\",\"add\":1965,\"del\":34649}]"}