-
Notifications
You must be signed in to change notification settings - Fork 5
terraform script for tee setup on ec2 #291
base: main
Are you sure you want to change the base?
Conversation
|
tee/tf/main.tf
Outdated
--name shielder-prover-proxy \ | ||
--restart always \ | ||
-p 3000:3000 \ | ||
--privileged \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of --privileged
, we can use --security-opt seccomp=unconfined
, which decreases security less and still works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed as you suggest
tee/tf/main.tf
Outdated
|
||
# Run the enclave | ||
echo "Starting Nitro Enclave with CID=$${TEE_CID}" | ||
nitro-cli run-enclave --cpu-count 2 --memory 2048 --enclave-cid $${TEE_CID} --eif-path /home/ec2-user/image.eif --debug-mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to add some flag/variable for --debug-mode
? For production, we should not be using --debug-mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a tf variable
No description provided.