Skip to content
Discussion options

You must be logged in to vote

When using the kubernetes backend, you aren't dynamically adjusting the secret_suffix based on the module, which is causing all the terragrunt configurations to write to the same state object. Because they are all sharing the state file, Terraform is viewing the differences across the modules as a diff in the deployment.

You should set secret_suffix to dynamically change based on the importing config, which you should be able to accomplish with:

remote_state {
  backend = "kubernetes"

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

  config = {
    config_path      = "~/.kube/config"
    secret_suffix    = "${replace(path_relative_to_include(), "/", "

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Eweol
Comment options

Answer selected by yorinasub17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment