Skip to content

Use AWS Copilot to deploy this simple application to Amazon ECS and AWS Fargate.

License

Notifications You must be signed in to change notification settings

huanjani/aws-copilot-sample-service

 
 

Repository files navigation

AWS Copilot CLI Sample App

testing github push trigger

This is a sample AWS Copilot sample app. You can use AWS Copilot to deploy this simple website to Amazon ECS.

Deploying

To deploy this app, clone this repo and then run:

copilot init --app demo                  \
  --svc api                              \
  --svc-type 'Load Balanced Web Service' \
  --dockerfile './Dockerfile'            \ 
  --deploy

Then

copilot job init --name job \
  --schedule @hourly
  --dockerfile ./Job.dockerfile
  
copilot job deploy

and

copilot pipeline init 

copilot pipeline update

Copilot will set up the following resources in your account:

  • A VPC
  • Subnets/Security Groups
  • Application Load Balancer
  • Amazon ECR Repositories
  • ECS Cluster & Service running on AWS Fargate

Cleaning up

Since this demo sets up resources in your account, let's delete them so you don't get charged:

copilot app delete --env-profiles test=default

Learning More

If you want to learn more about AWS Copilot, check out our documentation.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Use AWS Copilot to deploy this simple application to Amazon ECS and AWS Fargate.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 64.5%
  • Perl 13.5%
  • HTML 12.9%
  • Go 8.6%
  • Dockerfile 0.5%