Skip to content
Snippets Groups Projects
Unverified Commit b2b2c2af authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

protect AWS CF deployments by automatically blocking metadata URL (#578)

parent 1563a1b2
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,8 @@
"\n",
"#!/bin/bash\n",
"# check output of userdata script with sudo tail -f /var/log/cloud-init-output.log\n",
"sudo yum install docker -y\n",
"sudo yum install docker iptables -y\n",
"sudo iptables -A OUTPUT -m owner ! --uid-owner root -d 169.254.169.254 -j DROP\n",
"sudo systemctl enable docker\n",
"sudo systemctl start docker\n",
"mkdir -p /home/ec2-user/anythingllm\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment