hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.61k stars 9k forks source link

[Enhancement]: Add ability to use multiple target groups in CodeDeploy, in place deployments #34779

Open wagnerone opened 7 months ago

wagnerone commented 7 months ago

Description

A few months ago AWS announced the ability to manage targets in multiple ALB target groups when doing a CodeDeploy in-place deployment. Currently the provider only manages a single ALB target group for aws_codedeploy_deployment_group. Please enhance it to manage multiple ALB target groups.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_codedeploy_deployment_group" "default" {
  app_name              = aws_codedeploy_app.app.name
  deployment_group_name = "app deployment group"
  service_role_arn      = aws_iam_role.role_code_deploy.arn

  autoscaling_groups = var.autoscaling_group_names

  deployment_style {
    deployment_option = local.deployment_style
    deployment_type   = "IN_PLACE"
  }

  load_balancer_info {
    target_group_info {[var.target_group_name_alb_01, var.target_group_name_alb_02]}
  }

  auto_rollback_configuration {
    enabled = true
    events  = ["DEPLOYMENT_FAILURE"]
  }
}

References

AWS CodeDeploy now supports multiple load balancers for Amazon EC2 applications

Would you like to implement a fix?

None

github-actions[bot] commented 7 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

wagnerone commented 5 months ago

What is the next step to get some traction on this request? Thanks!

justinretzolk commented 5 months ago

Hey @wagnerone 👋 Thanks for checking in here! We base our prioritization on the count of :+1: reactions and a few other considerations (more information: prioritization guide).

wagnerone commented 5 months ago

@justinretzolk Thank you for that extra info. I'll sit tight for now.

vinz94f commented 3 months ago

Hello,

In the AWS web console, it's possible to select several target groups.

Capture d’écran 2024-03-14 à 16 40 05

But it's not possible to do this with the "aws_codedeploy_deployment_group" terraform resource.

Regards,