Skip to content

Regenerated backend line order changes on each run #1272

@bondsbw

Description

@bondsbw

I use overwrite_terragrunt on my backend configurations:

remote_state {
  backend = "s3"
  generate = {
    path      = "backend.tf"
    if_exists = "overwrite_terragrunt"
  }

  config = {
    ...
  }
}

Each time Terragrunt regenerates the backend.tf file, it generates the configuration lines in a different order. Since I'm storing backend.tf in source control, this shows as a change each time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions