Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.39 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.39 KB

Exercise (Step 4 Cloud Resume Challenge)

Linux basics

  1. Created a shell script (updated permissions + "shebang")
  2. Created an S3 bucket in S3
  3. Updated the S3 bucket to a static site
  4. Updated the S3 bucket policy
  5. Uploaded a local directory (including "index.html" to S3)
  6. Update our script to use a variable, rather than repeating the name

Homework

  1. Find a way to update policy.json to remove the hardcoded reference to the bucketname
  2. Add an error.html
  3. Break down the scripts into two (one for creating the bucket, one for syncing the files)

Creating a shell script

  1. touch cloud-resume-challenge.sh => Create a file
    • ls => Check if the file exists
  2. chmod u+x cloud-resume-challenge.sh => Adds executable permissions
  3. #!/bin/sh => Add the "shebang" to the top of a shell script
  4. echo "hello world" => Add scripts to the file !

Useful Links: