diff --git a/EB-Follow-Along-Docker/README.md b/EB-Follow-Along-Docker/README.md index 91ceaee..d4b465e 100644 --- a/EB-Follow-Along-Docker/README.md +++ b/EB-Follow-Along-Docker/README.md @@ -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: ``` diff --git a/VPC/private.userdata.sh b/VPC/private.userdata.sh new file mode 100644 index 0000000..fd85509 --- /dev/null +++ b/VPC/private.userdata.sh @@ -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 \ No newline at end of file diff --git a/VPC/public.userdata.sh b/VPC/public.userdata.sh new file mode 100644 index 0000000..a582d37 --- /dev/null +++ b/VPC/public.userdata.sh @@ -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 < + + Call to Arms + + + + + + +EOL" \ No newline at end of file