AWS Reference **WIP
aws ec2 describe-volumes
| upstream project { | |
| server 22.22.22.2:3000; | |
| server 22.22.22.3:3000; | |
| server 22.22.22.5:3000; | |
| } | |
| server { | |
| listen 80; | |
| location / { |
| #!/bin/sh | |
| # More Mac setup at https://mac.iamdeveloper.com | |
| # Log file | |
| timestamp=$(date +%s) | |
| logFile="./my-mac-setup-$timestamp.log" | |
| # if true is passed in, things will reinstall | |
| reinstall=$1 |
| echo "Creating an SSH key for you..." | |
| ssh-keygen -t rsa | |
| echo "Please add this public key to Github \n" | |
| echo "https://github.com/account/ssh \n" | |
| read -p "Press [Enter] key after this..." | |
| echo "Installing xcode-stuff" | |
| xcode-select --install |
| # Create AWS credentials file in ~/.aws | |
| serverless config credentials --provider aws --key <access-key-id> --secret <secret> --profile <profilename> | |
| # Create a sls framework service from a template in a path called servicename | |
| serverless create --t aws-nodejs --path servicename | |
| # Deploy functions from serverless.yml to AWS Lambda | |
| sls deploy |
| ## Update Packages | |
| apt-get update | |
| ## Upgrade Packages | |
| apt-get upgrade | |
| ## Git | |
| apt-get install -y git | |
| ## Apache | |
| apt-get install -y apache2 |