Skip to content

Commit

Permalink
protect AWS CF deployments by automatically blocking metadata URL (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat authored Jan 12, 2024
1 parent 1563a1b commit b2b2c2a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b2b2c2a

Please sign in to comment.