# Lab 1-1: Accessing the AWS Sandbox

All of this lab was done in the cloud foundations course:

## Access the sandbox environment in the Cloud Foundations Modules:

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FgJO1R6SRb2C5WlirXgXT%2Fimage.png?alt=media&#x26;token=89f5e5f1-21d9-4507-8772-b09d71f1886a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FNGiNjaR0WgirWzwf5Trc%2Fimage.png?alt=media&#x26;token=a6846373-b187-484e-8f0f-a24a5993333c" alt=""><figcaption></figcaption></figure>

Then click start in the top right

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FiAiKTYK11rUsOROTug5e%2Fimage.png?alt=media&#x26;token=b75d53f8-e121-45d6-a7e8-53123c678bc1" alt=""><figcaption></figcaption></figure>

In the terminal type "aws sts get-caller-identity" (This is an optional step)

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2Ft9mq8JaCnHh9oh7H3AWD%2Fimage.png?alt=media&#x26;token=f04a8cd4-4df7-4d03-bc89-f1ae13ebb4de" alt=""><figcaption></figcaption></figure>

You will get a loading screen. Once that goes away click "AWS"

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FjcLVM6dBLF8d94jQTYIN%2Fimage.png?alt=media&#x26;token=8ac91782-b9f3-4a40-aca0-1fc8eadff8eb" alt=""><figcaption></figcaption></figure>

## Lauching an EC2 Instace:

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FRgb4YTp2Jeo7ZTntv5Zm%2Fimage.png?alt=media&#x26;token=637dc69b-fd4b-4337-8170-380feb576480" alt=""><figcaption><p><br></p></figcaption></figure>

You will then enter the EC2 screen click "Instances"

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FbPRdFIEjVldADhxK8ONu%2Fimage.png?alt=media&#x26;token=4408e5ca-a1b7-4bed-9cca-915824a67e9d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2F6R2oAFkQPkVBgMLnnBNR%2Fimage.png?alt=media&#x26;token=c5dc3132-51f3-4e4c-867c-6d7196506f89" alt=""><figcaption></figcaption></figure>

Now select "Launch Instance" in the top right. After that you will be brought to the launch instance page:

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FJHIcnUzOd8W2k6I4UTo7%2Fimage.png?alt=media&#x26;token=842f7a88-c136-41f6-9456-4b96db01b332" alt=""><figcaption></figcaption></figure>

Create a new key pair: (**But for this lab we're using the default vockey**)

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FcfaxqdsvlfzoZ5A8y7gz%2Fimage.png?alt=media&#x26;token=cfade667-6941-4b41-87cb-f87d25a48a27" alt=""><figcaption></figcaption></figure>

If you use .pem you can use the key with ssh in powershell

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FSU1ZcowEdcabqEkoUIY5%2Fimage.png?alt=media&#x26;token=03f58d1a-8a04-437a-8417-72ac207fd58d" alt=""><figcaption></figcaption></figure>

Download Keypair: (In workbench)

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2F1OoCq6POnXA7mns0XDIs%2Fimage.png?alt=media&#x26;token=20996784-8d93-4bac-85cb-6fcfe66cb54a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2F7lJjvaCVovYC7FoYgdp1%2Fimage.png?alt=media&#x26;token=5a672d3a-bc91-4deb-b223-cb54c2709ed0" alt=""><figcaption></figcaption></figure>

You can leave the rest default for this example and click "Launch instance" on the right

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2Firx5rvtGVxl0HW97kHLR%2Fimage.png?alt=media&#x26;token=886fa4b6-ac30-4fbb-bbcf-8f7a1df6fc64" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FTw7mTfdoGLgcjt8ggxWg%2Fimage.png?alt=media&#x26;token=242a63e3-d43d-4803-a2a1-f2ca4ff436be" alt=""><figcaption></figcaption></figure>

Now SSH into instance using key:

<figure><img src="https://1702353884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg4BXXN6DhMLmwASC6sFj%2Fuploads%2FfFwAS4p4nXdumbLiWTW0%2Fimage.png?alt=media&#x26;token=aec38b4d-b00a-4cb6-945b-144b8c3af7ac" alt=""><figcaption></figcaption></figure>
