Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions EB-Follow-Along-Docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ docker build --tag study-sync:1.0 .

It will build your image with the commands defined in your Dockerfile and assign a tag to it.

If you run out of disk space on cloud9 at this point, you can [follow these instructions to increase disk space](https://docs.aws.amazon.com/cloud9/latest/user-guide/move-environment.html#move-environment-resize).

To confirm your image, run the following command:

```
Expand Down
5 changes: 5 additions & 0 deletions VPC/private.userdata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
su ec2-user
echo -e "kaiwinn\nkaiwinn" | passwd ec2-user
sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config
sudo service sshd restart
18 changes: 18 additions & 0 deletions VPC/public.userdata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
su ec2-user
sudo yum install httpd -y
sudo service httpd start
sudo su -c "cat > /var/www/html/index.html <<EOL
<html>
<head>
<title>Call to Arms</title>
<style>
html, body { background: #000; padding: 0; margin: 0; }
img {display: block; margin: 0px auto; }
</style>
</head>
<body>
<img src='https://media.giphy.com/media/xIytx7kHpq74c/giphy.gif' height='100%'/>
</body>
</html>
EOL"