Skip to content

Ignore Task Def Changes with Service Connect TLS Results in Plan Error #340

@logadams

Description

@logadams

Description

In the Service Module if one specifies ignore_task_definition_changes=true along with service connect tls configuration one will get an error. I believe this is due to a mismatch between the two different resources that the ignore_task_definition_changes creates and how they handle the dynamic block differently.

See L254 vs L574

  • ✋ I have searched the open/closed issues and my issue is not listed.

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

  • Module version [Required]: 6.2.1

  • Terraform version:

Reproduction Code [Required]

module "service" {
  ignore_task_definition_changes = true
  service_connect_configuration = {
   service = [{
      tls = {
         role_arn = ""
         issuer_cert_authority = {
            aws_pca_authority_arn = ""
         }
      }
   }]
  }
}

Steps to reproduce the behavior:

  1. Specify tls configuration block while also specifying ignore_task_definition_changes=true

Expected behavior

Should behave the same as when specifying ignore_task_definition_changes=false

Actual behavior

Terraform plan error due to incorrect dynamic block handling

Terminal Output Screenshot(s)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions