Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3. Setup the server #21

Closed
7 tasks done
fatse opened this issue Apr 13, 2021 · 1 comment
Closed
7 tasks done

3. Setup the server #21

fatse opened this issue Apr 13, 2021 · 1 comment
Assignees
Labels
Milestone

Comments

@fatse
Copy link
Collaborator

fatse commented Apr 13, 2021

Description:

rubric={correctness:20}

  • 3.1) Login in to the server (instance). The person who spins up the EC2 instance will only have access to the server as he only got the private key. If someone else wants to log in to that instance, you need to get hold of that private key ( Refer 1.10 ). Need to know more ? Click here

  • 3.2) Setup a common data folder to download data, and this folder should be accessible by all users in the JupyterHub. Following commands make a folder and make it accessible to everyone. Want to learn more about basic UNIX commands? Click here.

sudo mkdir -p /srv/data/my_shared_data_folder
sudo chmod 777 /srv/data/my_shared_data_folder/
  • 3.3)(OPTIONAL, no bonus points) If you want a sharing notebook environment, then check out this. if you plan to do this, make sure you install the "members" package in your server run sudo apt-get install members."

  • 3.4) Install AWS CLI. More details here.

NOTE:We are installing this in our EC2 instance, but we can install this anywhere to interact with s3. Say you can install it in your local machine and move data to s3.

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo apt install unzip
unzip awscliv2.zip
sudo ./aws/install
  • 3.5) Setup your access key and secret. Do it from your AWS console. Make sure you keep your "Access key ID" & secret key somewhere safe.

  • 3.6) Use these credentials to configure AWS CLI (aws configure). More details here. "Default region" and "output format" you can leave empty.

  • 3.7) AWS cli can be used to interact with a lot of services. Check this out. To get a feel, we will use CLI to interact with s3 and wait for step 6.

Please attach this screen shots from your group for grading
Make sure you mask the IP address refer here.

https://github.ubc.ca/MDS-2020-21/DSCI_525_web-cloud-comp_students/blob/master/images/3_result.png

@fatse fatse added the specs label Apr 13, 2021
@fatse fatse added this to the milestone2 milestone Apr 13, 2021
@fatse fatse assigned fatse and syadk Apr 13, 2021
@fatse
Copy link
Collaborator Author

fatse commented Apr 17, 2021

Screen Shot 2021-04-17 at 3 51 03 PM

@fatse fatse closed this as completed Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants