Skip to content

feat: Add support for advanced deployment configurations (i.e. - blue/green deployment) #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

magreenbaum
Copy link
Member

@magreenbaum magreenbaum commented Jul 20, 2025

Description

Support blue/green deployments.

Motivation and Context

Closes: #320

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

for_each = var.deployment_configuration != null ? [var.deployment_configuration] : []

content {
strategy = try(deployment_configuration.value.strategy, null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the optional attributes, we don't need to follow this pattern anymore and can simply drop the try(xxxx, null) pattern. the optional(xxx) means that if a value wasn't provided, you will get null in return (unless a default is provided with optional(xxx, "default something") - then you will get the default value)

@bryantbiggs bryantbiggs changed the title feat: Blue/Green Deployments feat: Add support for advanced deployment configurations (i.e. - blue/green deployment) Jul 21, 2025
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@bryantbiggs bryantbiggs merged commit 010e581 into terraform-aws-modules:master Jul 21, 2025
13 checks passed
antonbabenko pushed a commit that referenced this pull request Jul 21, 2025
## [6.1.0](v6.0.6...v6.1.0) (2025-07-21)

### Features

* Add support for advanced deployment configurations (i.e. - blue/green deployment) ([#322](#322)) ([010e581](010e581))
@antonbabenko
Copy link
Member

This PR is included in version 6.1.0 🎉

@magreenbaum magreenbaum deleted the feat/blue_green_deployments branch July 21, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blue/Green deployment build-in AWS ECS
3 participants