Giter VIP home page Giter VIP logo

aws-csaa-code's People

Contributors

farrahdct avatar nealdct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-csaa-code's Issues

Auto Scaling and ELB: `user-data-az.md` not working as expected.

Hi Neal,

Firstly, let me say that I think you have the best slides and style of course delivery compared to your competitors on udey or tutorials dojo. Thanks for sharing your good work.

I've seen that you have committed on April 2 so I've re downloaded the zip but I still have the same problem.

2 things:

  1. pure cosmetics: /Code/Auto\ Scaling\ and\ ELB/user-data-az.md has the markdown extention instead of .sh of course since we are prompted to copy and paste it it doesn't really matter. It did however make me second guess weather I was in the correct folder...

  2. I have of course only copied line 4 thru 12 as indicated. But my web servers don't display the output shown in your browser as demonstrated in the video "Section 4: Elastic Load Balancing and Auto Scaling: 63. [HOL] Application Load Balancer". Here the code I pasted from the user-data-az.md:

#!/bin/bash
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
aws s3 cp s3://my-website-assets-2313243d/index.html ./
cp index.html index.txt
EC2AZ=$(TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` && curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/placement/availability-zone) 
sed "s/AZID/$EC2AZ/" /var/www/html/index.txt > /var/www/html/index.html

To find out what has happened to my index.html file I went into the cloud-shell of the both of the 2 instance we have set up via the ASG:

$ ls -a /var/ shows me that there is no directory called www/ in /var/ thus there is no index.html` to be displayed.

When I manually run line 9 in the cloudshell of the instance from your script (aws s3 cp s3://my-website-assets-2313243d/index.html ./) I get

[cloudshell-user@ip-x-x-x-x ~]$ aws s3 cp s3://my-website-assets-2313243d/index.html ./
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden

Maybe you know what is going on? Your help would be much appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.