Skip to content

A sample code to deploy a Nginx server on ECS with persistant EFS storage

License

Notifications You must be signed in to change notification settings

gwen-gg/aws-copilot-fargate-efs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS Copilot ECS Fargate / EFS

Deploy a simple Nginx server with persistant Storage EFS / Fargate

Copilot Docs

  1. Install AWS Copilot and AWS CLI
  2. Run copilot init
  3. 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

About

A sample code to deploy a Nginx server on ECS with persistant EFS storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published