mirror of
https://github.com/mr-vercetti/tf-aws-demo.git
synced 2025-07-02 12:55:37 +02:00
Add demo-app autoscaling group
This commit is contained in:
12
modules/app/resources/bootstrap.sh
Executable file
12
modules/app/resources/bootstrap.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
yum update -y
|
||||
amazon-linux-extras install docker
|
||||
service docker start
|
||||
usermod -a -G docker ec2-user
|
||||
chkconfig docker on
|
||||
|
||||
docker run \
|
||||
-p 80:80 \
|
||||
--restart unless-stopped \
|
||||
nginxdemos/hello
|
Reference in New Issue
Block a user