$ copilot svc deploy
What does it do?
copilot svc deploy takes your local code and configuration and deploys it.
The steps involved in service deploy are:
- Build your local Dockerfile into an image
- Tag it with the value from
--tagor the latest git sha (if you're in a git directory)
- Push the image to ECR
- Package your manifest file and addons into CloudFormation
- Create / update your ECS task definition and service
What are the flags?
-e, --env string Name of the environment. --force Optional. Force a new service deployment using the existing image. -h, --help help for deploy -n, --name string Name of the service. --resource-tags stringToString Optional. Labels with a key and value separated by commas. Allows you to categorize resources. (default ) --tag string Optional. The service's image tag.