File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,14 +364,7 @@ cat <<'EOF' > user-data.sh
364364#!/bin/bash
365365# Update the instance and install Nitro Enclaves tools, Docker and other utilities
366366sudo yum update -y
367- # Install Amazon Linux extras and enable Nitro Enclaves CLI
368- sudo yum install -y amazon-linux-extras
369- sudo amazon-linux-extras enable aws-nitro-enclaves-cli
370- sudo yum clean metadata
371- sudo yum install -y aws-nitro-enclaves-cli || echo "nitro-cli install failed"
372-
373- # Other dependencies
374- sudo yum install -y docker nano socat git make jq
367+ sudo yum install -y aws-nitro-enclaves-cli-devel aws-nitro-enclaves-cli docker nano socat git make
375368
376369# Add the current user to the docker group (so you can run docker without sudo)
377370sudo usermod -aG docker ec2-user
@@ -578,4 +571,4 @@ echo "[*] Please wait 2-3 minutes for the instance to finish the init script bef
578571echo " [*] ssh inside the launched EC2 instance. e.g. \` ssh ec2-user@\" $PUBLIC_IP \"\` assuming the ssh-key is loaded into the agent."
579572echo " [*] Clone or copy the repo with the above generated code."
580573echo " [*] Inside repo directory: 'make' and then 'make run'"
581- echo " [*] Run expose_enclave.sh from within the EC2 instance to expose the enclave to the internet."
574+ echo " [*] Run expose_enclave.sh from within the EC2 instance to expose the enclave to the internet."
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ echo "127.0.0.64 api.weatherapi.com" >> /etc/hosts
2828
2929
3030
31+
3132# == ATTENTION: code should be generated here that parses allowed_endpoints.yaml and populate domains here ===
3233
3334cat /etc/hosts
@@ -50,6 +51,7 @@ python3 /traffic_forwarder.py 127.0.0.64 443 3 8101 &
5051
5152
5253
54+
5355# Listens on Local VSOCK Port 3000 and forwards to localhost 3000
5456socat VSOCK-LISTEN:3000,reuseaddr,fork TCP:localhost:3000 &
5557
You can’t perform that action at this time.
0 commit comments