Skip to content

openupthecloud/s3-website-cloud-resume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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: