Skip to content
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

Workaround for re-creation of ECS service #5

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

akuzminsky
Copy link
Member

It's a workaround of a bug
hashicorp/terraform-provider-aws#22823

Terraform never converged and wanted to re-create the service.

Terraform used the selected providers to generate the following
execution plan. Resource actions are indicated with the following
symbols:
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # module.test.aws_ecs_service.ecs must be replaced
-/+ resource "aws_ecs_service" "ecs" {
      - health_check_grace_period_seconds  = 0 -> null
      ~ iam_role                           =
"/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> (known
after apply)
      ~ id                                 =
"arn:aws:ecs:us-east-2:303467602807:service/test-terraform-aws-ecs/test-terraform-aws-ecs"
-> (known after apply)
      + launch_type                        = (known after apply)
        name                               = "test-terraform-aws-ecs"
      + platform_version                   = (known after apply)
      - propagate_tags                     = "NONE" -> null
      - tags                               = {} -> null
      ~ triggers                           = {} -> (known after apply)
        # (10 unchanged attributes hidden)

      - capacity_provider_strategy { # forces replacement
          - base              = 1 -> null
          - capacity_provider = "test-terraform-aws-ecs" -> null
          - weight            = 100 -> null
        }

      - deployment_circuit_breaker {
          - enable   = false -> null
          - rollback = false -> null
        }

      - deployment_controller {
          - type = "ECS" -> null
        }

        # (1 unchanged block hidden)
    }

It's a workaround of a bug
hashicorp/terraform-provider-aws#22823

Terraform never converged and wanted to re-create the service.
```
Terraform used the selected providers to generate the following
execution plan. Resource actions are indicated with the following
symbols:
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # module.test.aws_ecs_service.ecs must be replaced
-/+ resource "aws_ecs_service" "ecs" {
      - health_check_grace_period_seconds  = 0 -> null
      ~ iam_role                           =
"/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> (known
after apply)
      ~ id                                 =
"arn:aws:ecs:us-east-2:303467602807:service/test-terraform-aws-ecs/test-terraform-aws-ecs"
-> (known after apply)
      + launch_type                        = (known after apply)
        name                               = "test-terraform-aws-ecs"
      + platform_version                   = (known after apply)
      - propagate_tags                     = "NONE" -> null
      - tags                               = {} -> null
      ~ triggers                           = {} -> (known after apply)
        # (10 unchanged attributes hidden)

      - capacity_provider_strategy { # forces replacement
          - base              = 1 -> null
          - capacity_provider = "test-terraform-aws-ecs" -> null
          - weight            = 100 -> null
        }

      - deployment_circuit_breaker {
          - enable   = false -> null
          - rollback = false -> null
        }

      - deployment_controller {
          - type = "ECS" -> null
        }

        # (1 unchanged block hidden)
    }
```
@akuzminsky akuzminsky merged commit c2f532a into main Dec 5, 2023
@akuzminsky akuzminsky deleted the re-create-fix branch December 5, 2023 01:33
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.

1 participant