mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-02 08:50:11 +02:00
protect AWS CF deployments by automatically blocking metadata URL (#578)
This commit is contained in:
parent
1563a1b20f
commit
b2b2c2afe1
@ -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…
Reference in New Issue
Block a user