From 33b0c5b763ceb4ced5379d7f6b205eb4f861b886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Paues?= Date: Wed, 2 Sep 2020 16:50:17 +0200 Subject: [PATCH 1/2] Instructions for increasing cloud9 disk space --- EB-Follow-Along-Docker/README.md | 2 ++ 1 file changed, 2 insertions(+) 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: ``` From c3548761d4d56ca703623eb9a0b3be5e68b5249a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88ran=20Paues?= Date: Sun, 10 Jan 2021 19:59:36 +0100 Subject: [PATCH 2/2] Userdata scripts --- VPC/private.userdata.sh | 5 +++++ VPC/public.userdata.sh | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 VPC/private.userdata.sh create mode 100644 VPC/public.userdata.sh 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