copilot-cli: Release v1.31.0
⚡️ Features and Enhancements
-
NLB enhancements: You can now add security groups to Copilot-managed NLBs. NLBs also support the UDP protocol. (#5284)
Previously, the
nlb
field in a Load-Balanced Web Service supported onlytcp
ortls
traffic. Now, you can listen toudp
traffic as well!nlb: port: 8080/udp healthcheck: port: 80 # This needs to be a tcp port additional_listeners: - port: 8081/udp healthcheck: port: 80 # This needs to be a tcp port
Note that you will need to specify a health check port on your container that accepts TCP traffic, as health check using udp protocol isn't supported today.
-
Better task failure logs: Copilot will show more descriptive information during deployments when tasks fail, allowing for better troubleshooting. (#5249)
copilot [noun] deploy
will now display the ECS task stopped reasons within your CloudFormation deployment progress tracker:- An ECS service to run and maintain your tasks in the environment cluster Deployments Revision Rollout Desired Running Failed Pending PRIMARY 11 [in progress] 1 0 1 0 ACTIVE 8 [completed] 1 1 0 0 Latest 2 stopped tasks TaskId CurrentStatus DesiredStatus 6b1d6e32 DEPROVISIONING STOPPED 9802d212 STOPPED STOPPED ✘ Latest 2 tasks stopped reason - [6b1d6e32,9802d212]: Essential container in task exited Troubleshoot task stopped reason 1. You can run `copilot svc logs --previous` to see the logs of the last stopped task. 2. You can visit this article: https://repost.aws/knowledge-center/ecs-task-stopped.
-
copilot deploy
enhancements: You can now deploy multiple workloads at once, or deploy all local workloads, with--all
. (#5324)copilot deploy
now supports deploying multiple workloads with one command, with optional ordering. You can specify multiple workloads with the--name
flag, use the new--all
flag in conjunction with--init-wkld
to initialize and deploy all local workloads, and you can now provide a "deployment order" tag when specifying service names.$ copilot deploy --all -n fe/1 -n worker/2 # Deploy "fe" first, and then "worker".
-
Import an ACM certificate for your Static Site: You can now bring your own ACM certificate for your Static Site service. (#5285 )
To import an ACM certificate for your static site, simply specify the below fields in your static site manifest:
http: alias: example.com certificate: "arn:aws:acm:us-east-1:1234567890:certificate/e5a6e114-b022-45b1-9339-38fbfd6db3e2"
-
copilot [env/svc] init
improvements: theseinit
commands no longer complain if you are initiating an existing service/job/environment already managed by the same workspace. In addition,copilot env init
will no longer ask you to select an AWS profile if you have not configured one. (#5242 and #5202) -
Enable versioning on S3 buckets: Copilot now enables versioning on all of the S3 buckets created by Copilot. (#5289)
🐛 Bug Fixes
- Panic when running
copilot svc status
against a service that is already stopped. (#5336)
❤️ Contributions
Thank you, contributors 🥰!