- BYU Cloud Office
- Logging in to AWS Educate
- Creating infrastructure in your Educate Account
- Console
- Command Line
- Saving money by shutting down EC2 and RDS - calculator.aws
- Saving money by deleting infrastructure
- Supported Services
- Limitations - no Cost Explorer, no billing
- Log in to https://www.awseducate.com
- Enter your login details
- Click the My Classrooms link at the top of the page
- Click the Go to classroom button alongside your desired classroom - Click Continue
- Under the Your AWS Account Status area, click the Account Details button
- Show the AWS CLI information - copy this into your ~/.aws/credentials file
- Log in to https://www.awseducate.com
- Enter your login details
- Click the My Classrooms link at the top of the page
- Click the Go to classroom button alongside your desired classroom - Click Continue
- Under the Your AWS Account Status area, click the AWS Console button
- Ensure the N. Virginia region (US-East-1) is selected in the top right
-
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
- Linux EC2 Instances in each US-East-1 Subnet
-
Python script to stop/start EC2 and RDS instances via the commandline
- 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
- 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