Deploy a simple Nginx server with persistant Storage EFS / Fargate
- Install AWS Copilot and AWS CLI
- Run
copilot init
- Run
copilot deploy
If succesfull, you'll get the following message
- You can access your service at http://{GENERATEDURL}.{DEFAULT_REGION}.elb.amazonaws.com over the internet.
When the stack is deployed, connect to the container with
copilot svc exec
Then add the file to the filesystem
cd /usr/share/nginx/html
echo "Hello world" > index.html