Skip to content

byuibigdata/byu-cloud-conference-educate

 
 

Repository files navigation

Cloud Conference - AWS Educate Accounts

Enable Command Line Connections to your Educate Account

  • Log in to https://www.awseducate.com
    • Log in to AWS Educate
  • Enter your login details
    • Enter Login Details
  • Click the My Classrooms link at the top of the page
    • Click My Classrooms
  • Click the Go to classroom button alongside your desired classroom - Click Continue
    • Click Go to classroom
    • Click Continue
  • Under the Your AWS Account Status area, click the Account Details button
    • Click Account Details
  • Show the AWS CLI information - copy this into your ~/.aws/credentials file
    • Click Show
    • Copy/Paste

Login to the AWS Console of your Educate Account

  • Log in to https://www.awseducate.com
    • Log in to AWS Educate
  • Enter your login details
    • Enter Login Details
  • Click the My Classrooms link at the top of the page
    • Click My Classrooms
  • Click the Go to classroom button alongside your desired classroom - Click Continue
    • Click Go to classroom
    • Click Continue
  • Under the Your AWS Account Status area, click the AWS Console button
    • Click AWS Console
  • Ensure the N. Virginia region (US-East-1) is selected in the top right
    • N. Virginia Region

Command Line Infrastructure - Linux, Mac, Windows (via WSL)

  • If you run MS Windows, follow the instuctions below to install WSL

  • Terraform is an Infrastructure as Code (IaC) language that allows easy, repeatable creation of infrastructure.

  • The terraform scripts in this repo create:

    • Linux EC2 Instances in each US-East-1 Subnet
      • Current EC2 Linux pricing t2.micro $0.0116/hour ($1.95/week)
    • A Key Pair for SSH Access
    • MySQL RDS Instances in each US-East-1 Subnet
      • Current RDS MySQL pricing db.t3.micro $0.017/hour ($2.86/week)
    • A Random Password for MySQL Access
    • A Security Group that allows SSH access to the EC2 Instances from Local IP
  • Python script to stop/start EC2 and RDS instances via the commandline

Setting Up Windows with Windows Subsystem for Linux (WSL)

  • Enable WSL
  • Install Ubuntu 18.04 LTS from the Microsoft Store
    • You will be asked for a Username and Password; this does not need to be the same as your Windows username/password

Install AWS Command Line Tool and Terraform

  • Open (WSL) Ubuntu - or your command prompt on Linux/Mac
  • Add unzip
    • sudo apt install unzip -y
  • Install AWS CLI
    • curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    • unzip awscliv2.zip
    • sudo ./aws/install
    • aws --version
  • Add $HOME/.local/bin to path
vim .bashrc
    if [ -d "$HOME/.local/bin" ] ; then
        PATH="$HOME/.local/bin:$PATH"
    fi
source .bashrc
  • Install Terraform
    • curl "https://releases.hashicorp.com/terraform/0.14.6/terraform_0.14.6_linux_amd64.zip" -o "terraform.zip"
    • unzip terraform.zip
    • mkdir -p ~/.local/bin
    • mv terraform ~/.local/bin/terraform
    • terraform --version

About

AWS Educate Accounts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 70.4%
  • Python 29.6%