Skip to content

Ignoring load_balancer is not always what one want for CD #152

@ohmer

Description

@ohmer

Issue related to: https://github.com/terraform-aws-modules/terraform-aws-ecs/blob/ccc0d3a0786de98d53857b08663dedf11833d789/modules/service/main.tf#L394C7-L394C20

As noted in https://github.com/terraform-aws-modules/terraform-aws-ecs/tree/master/docs#service-1 and changed by #81, calling the module with ignore_task_definition_changes for a service also ignores change related to the load_balancer attribute. The goal was to support blue/green deployment via CodePipeline.

I would like to support deployment via a simple service update. I use GitHub Actions with https://github.com/aws-actions/amazon-ecs-deploy-task-definition and manage the load balancer and service resources via Terraform.

In the description, it was considered to create an ignore_task_definition_changes variable as well as ignore_load_balancer_changes. In #81 (comment), it was dropped to keep things simple. To support my use case, I think the 4 cases (ignore 0, ignore lb, ignore task def, ignore both) should be implemented.

Happy to submit a PR if maintainers would like this done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions