Skip to content

Commit

Permalink
Change security group and student instance instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoang22 committed Nov 6, 2024
1 parent 464f05a commit cd304b0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _posts/0009-09-01-AWS_Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ Note: Any AWS account needs to be linked to an actual person and credit card acc

## Start with existing community AMI

1. Launch a fresh Ubuntu Image (Ubuntu Server 22.04 LTS at the time of writing this). Choose an instance type of `m6a.xlarge`. Increase root volume (e.g., 60GB) and add a second volume (e.g., 500GB). Choose appropriate security group (for 2023 course, choose an existing security group launch-wizard-14). Review and Launch. If necessary, create a new key pair, name and save somewhere safe. Select 'View Instances'. Take note of public IP address of newly launched instance.
1. Launch a fresh Ubuntu Image (Ubuntu Server 22.04 LTS at the time of writing this). Choose an instance type of `m6a.xlarge`. Increase root volume (e.g., 60GB)(type:gp3) and add a second volume (e.g., 500GB)(type:gp3). Choose appropriate security group (for 2024 course, choose security group SSH/HTTP/Jupyter (cshl-2023)). Review and Launch. If necessary, create a new key pair, name and save somewhere safe. Select 'View Instances'. Take note of public IP address of newly launched instance.
2. Change permissions on downloaded key pair with `chmod 400 [instructor-key].pem`
3. Login to instance with ubuntu user:

`ssh -i [instructor-key].pem ubuntu@[public.ip.address]`

Note: for 2023 course, choose security group launch-wizard-14

## Perform basic linux configuration

Expand Down Expand Up @@ -937,6 +936,7 @@ Finally, save the instance as a new AMI by right clicking the instance and click
* cshl-seqtec-2022 (ami-09b613ae9751a96b1; N. Virginia)
* cbw-rnabio-2023 (ami-09b3fd07d90812201; N. Virginia)
* cshl-seqtec-2023 (ami-05d41e9b8c7eee2df; N. Virginia)
* cshl-2024
### Create IAM account
Expand All @@ -945,16 +945,16 @@ From AWS Console select Services -> IAM. Go to Users, Create User, specify a use
### Launch student instance
1. Go to AWS console. Login. Select EC2.
2. Launch Instance, search for "cshl-seqtech-2021" in Community AMIs and Select.
3. Choose "m5.2xlarge" instance type.
2. Launch Instance, search for "cshl-2024" in Community AMIs and Select.
3. Choose "m6a.xlarge" instance type.
4. Select one instance to launch (e.g., one per student and instructor), and select "Protect against accidental termination"
5. Make sure that you see two snapshots (e.g., the 32GB root volume and 80GB EBS volume you set up earlier)
5. Make sure that you see two snapshots (e.g., the 60GB root volume (gp3) and 500GB EBS volume (gp3) you set up earlier)
6. Create a tag with Name=StudentName
7. Choose existing security group call "SSH_HTTP". Review and Launch.
8. Choose an existing key pair (cshl_2021_student.pem)
7. Choose existing security group call "SSH/HTTP/Jupyter". Review and Launch.
8. Choose an existing key pair (cshl_2024_student.pem)
9. View instances and wait for them to finish initiating.
10. Find your instance in console and select it, then hit connect to get your public.ip.address.
11. Login to node `ssh -i cshl_2021_student.pem ubuntu@[public.ip.address]`.
11. Login to node `ssh -i cshl_2024_student.pem ubuntu@[public.ip.address]`.
12. Optional - set up DNS redirects (see below)
### Set up a dynamic DNS service
Expand Down

0 comments on commit cd304b0

Please sign in to comment.