⚡️ Features and Enhancements
copilot run local
to run your services locally (#5049, #5201, #5182)You can use
copilot run local
to test Copilot services on your local machine! To get started, deploy your service
withcopilot svc deploy
. Once your service is deployed, you can test changes to your code without waiting for a deployment by runningcopilot run local
. Copilot will build or pull your service's images, inject secrets and environment variables defined in your manifest, grab your current IAM session credentials, and run Docker containers on your machine with that data.
See the blogpost for more info.- Pipeline Pre- and Post-Deployment Actions (#5209, #5109)
In pipelines, you can now use
pre_deployments
andpost_deployments
to define actions for your pipeline to run before or after your services or environments are deployed. This is helpful for running database migrations from within your pipeline! - Use Ctrl-C to roll back in-progress deployments (#5213)
While waiting for
copilot [noun] deploy
to finish, if you hit Ctrl-C, Copilot will roll back the current CloudFormation deployment. This is especially helpful if your Service is failing and you're stuck waiting for a CloudFormation deployment to fail! copilot deploy
toinit
-alize anddeploy
services and environments (#5168, #5215)You can now use
copilot deploy
to deploy environments and initialize services and environments with local manifests. The guided workflow now includes uninitialized local workloads and environments. Getting started with Copilot is now as easy asgit clone . && copilot deploy
!- Update exit code of
copilot [noun] deploy
to 0 if there are no changes (#5179) - Support
from_cfn
for importing an EFS ID (#5156) - Set default Static Site alias if app has an imported domain (#5191)
- Fall back to default credentials if no AWS config is present on
copilot env init
(#5202)
🐛 Bug Fixes
- Skip interpolating arrays of strings for nodes with a literal style (#5157)
- Better output when building a single image (#5148)
- Fix initializing jobs with
copilot deploy
(#5183) - Empty Copilot-created S3 bucket for ALB Access Logs on
copilot env delete
(#5184) - Fix searching for a cluster with the same name as a recently deleted cluster (#5204)
- Skip
http
validation if it's disabled (#5198) - Block deleting an environment if it's currently used in a pipeline (#5246)