---
title: "Create CodeDeploy B/G Deployment"
method: POST
path: "/aws/ec2/group/{groupId}/codeDeploy/blueGreenDeployment"
tags: ["Elastigroup AWS"]
---

# Create CodeDeploy B/G Deployment

`POST /aws/ec2/group/{groupId}/codeDeploy/blueGreenDeployment`

Trigger a Blue-Green deployment to your Elastigroup, this will initiate a deployment that will replace the existing instances(blue) with new ones(green).

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1gcp~1gce~1group~1%7BgroupId%7D/get/parameters/1` — unresolved $ref

## Request body

- 0 — unresolved $ref

## Other responses

- `200` — unresolved $ref
- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
