DEV Community

Roman
Roman

Posted on • Edited on

AWS CodeDeploy Cheat Sheet

About

CodeDeploy is a fully managed deployment service that automates software deploy­ments to a variety of compute services such as EC2, Fargate, Lambda, & on-pre­mises servers

CodeDeploy can also deploy a serverless Lambda function.

CodeDeploy can be connected to CodePipeline and use artifacts from there.

Platforms

Need to choose the compute platform:

  • EC2/On-premises.
  • AWS Lambda.
  • Amazon ECS.

AppSpec File

The application specification file (AppSpec file) is a YAML-formatted, or JSON-formatted file used by CodeDeploy to manage a deployment.

The AppSpec file defines the deployment actions you want AWS CodeDeploy to execute.

Deployment types

  • In-place deployment (EC2 only)
  • Blue/green deployments:

    • AWS Lambda: Traffic is shifted from one version of a Lambda function to a new version of the same Lambda function.
    • Amazon ECS: Traffic is shifted from a task set in your Amazon ECS service to an updated, replacement task set in the same Amazon ECS service.
    • EC2/On-Premises: Traffic is shifted from one set of instances in the original environment to a replacement set of instances.

Price

Current price

Use Cases

Type: Developer Tools

Practice

Questions

Q1

What will happen if you delete an unused custom deployment configuration in AWS CodeDeploy?

  1. You will no longer be able to associate the deleted deployment configuration with new deployments and new deployment groups.
  2. Nothing will happen, as the custom deployment configuration was unused.
  3. All deployment groups associated with the custom deployment configuration will also be deleted.
  4. All deployments associated with the custom deployment configuration will be terminated.

Q2

What happens when you delete a deployment group with the AWS CLI in AWS CodeDeploy?

  1. All details associated with that deployment group will be moved from AWS CodeDeploy to AWS OpsWorks.
  2. The instances used in the deployment group will change.
  3. All details associated with that deployment group will also be deleted from AWS CodeDeploy.
  4. The instances that were participating in the deployment group will run once again.

Heroku

Tired of jumping between terminals, dashboards, and code?

Check out this demo showcasing how tools like Cursor can connect to Heroku through the MCP, letting you trigger actions like deployments, scaling, or provisioning—all without leaving your editor.

Learn More

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

If this post gave you a hand, show some love with a ❤️ or drop a comment!

Start your DEV journey