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

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cathex-matt
Copy link

@cathex-matt cathex-matt commented Oct 14, 2022

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
Copy link
Author

cathex-matt commented Oct 14, 2022

Need some help on this build issue in TestNotIgnoringParentTerragrunt.
I tried fixing it with a change on test_examples/with_parent/child/terragrunt.hcl. I'm able to pass the tests successfully when using go 1.1.8 and 1.19 though.
Not being a Golang expert, I don't really get why there is a discrepancy between expected and actual on this test.
This test failure seems to impact other PRs too, including my 2nd one.

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.

None yet

1 participant