mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
protect AWS CF deployments by automatically blocking metadata URL (#578)
This commit is contained in:
parent
1563a1b20f
commit
b2b2c2afe1
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue