This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mkdir /etc/docker | |
| cat <<EOF | sudo tee /etc/docker/daemon.json | |
| { | |
| "exec-opts": ["native.cgroupdriver=systemd"], | |
| "log-driver": "json-file", | |
| "log-opts": { | |
| "max-size": "100m" | |
| }, | |
| "storage-driver": "overlay2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mkdir /etc/docker | |
| cat <<EOF | sudo tee /etc/docker/daemon.json | |
| { | |
| "exec-opts": ["native.cgroupdriver=systemd"], | |
| "log-driver": "json-file", | |
| "log-opts": { | |
| "max-size": "100m" | |
| }, | |
| "storage-driver": "overlay2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -f ~/metadata.sh | |
| cat <<'EOF' >> ~/metadata.sh | |
| echo -n "ami-id: " && curl http://169.254.169.254/latest/meta-data/ami-id && echo "" && echo "" | |
| echo -n "block-device-mapping/ami: " && curl http://169.254.169.254/latest/meta-data/block-device-mapping/ami && echo "" && echo "" | |
| echo -n "block-device-mapping/root: " && curl http://169.254.169.254/latest/meta-data/block-device-mapping/root && echo "" && echo "" | |
| echo -n "hostname: " && curl http://169.254.169.254/latest/meta-data/hostname && echo "" && echo "" | |
| echo -n "identity-credentials: " && curl http://169.254.169.254/latest/meta-data/identity-credentials/ec2/info && echo "" && echo "" | |
| echo -n "instance-id: " && curl http://169.254.169.254/latest/meta-data/instance-id && echo "" && echo "" | |
| echo -n "instance-type: " && curl http://169.254.169.254/latest/meta-data/instance-type && echo "" && echo "" | |
| echo -n "local-hostname: " && curl http://169.254.169.254/latest/meta-data/local-hostname && echo "" && echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum update -y | |
| yum install -y httpd | |
| echo '<h1>Hello World</h1>' > /var/www/html/index.html | |
| systemctl start httpd | |
| systemctl enable httpd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a4b.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com | |
| apigateway.amazonaws.com | |
| appflow.amazonaws.com | |
| application-autoscaling.amazonaws.com | |
| appstream.application-autoscaling.amazonaws.com |