terragrunt-atlantis-config icon indicating copy to clipboard operation
terragrunt-atlantis-config copied to clipboard

add Atlantis config project name support derived from terragrunt locals atlantis_project_name variable

Open cathex-matt opened this issue 1 year ago • 1 comments

Pull Request

Related Github Issues

  • [none]

Description

Add the capability to generate atlantis.tf config files with custom project names using the value of the terragrunt locals variable atlantis_project_name (useful for atlantis -p flag).

Requires the terragrunt-atlantis-config --create-project-name flag.

example:

locals {
  project_name = basename(get_terragrunt_dir())
  environment  = basename(dirname(get_terragrunt_dir()))

  # Atlantis setup
  atlantis_project_name = "${local.project_name}-${local.environment}"
}

Security Implications

  • [none]

System Availability

  • [none]

cathex-matt avatar Oct 14 '22 07:10 cathex-matt