Git Product home page Git Product logo

Comments (11)

dmattia avatar dmattia commented on August 16, 2024

Thanks for opening this!

Just so I can understand bet, where are you adding the extra_atlantis_dependencies local values? In your parent files, or in your leaf nodes?

As a note, terragrunt local values do not transfer between parents and child modules

from terragrunt-atlantis-config.

ryan-dyer-sp avatar ryan-dyer-sp commented on August 16, 2024

defining the extra_... in the parent terragrunt. This is not something we want to have to add for 100s of leaf terragrunt.hcl files.

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Sure, I can take this as a feature request to pass down the extra_atlantis_dependencies from a parent to all children, merging in values.

Then as far as you question about generating projects for the parent terragrunt.hcl files, you can use the --ignore-parent-terragrunt flag so that files without a terraform block with a source attribute do not have projects made for them in your atlantis.yaml output

from terragrunt-atlantis-config.

ryan-dyer-sp avatar ryan-dyer-sp commented on August 16, 2024

Great please let me know if you need assistance with testing.

Also I have noticed it doesn't seem to capture files referenced by extra arguments and varfiles. Unless .tf captures files from other directories, but I don't believe this is the case.

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

That is also a great point! I haven't used extra_argument files, so I missed that feature, but that should be quite easy to add.

I'll see if I can get to a few of these open issues today or this weekend 😄

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Linking issue: #60

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Release v0.9.1 is out now, which enables merging in extra_atlantis_dependencies from parents to children.

I started using this feature in my company's monorepo already, and it seems to work / be a useful improvement, so thank you for the suggestion! Please let me know if you have any issues using the new features.

As an example, here is what I have in one of my top level parent modules:

locals {
  extra_atlantis_dependencies = [
    abspath("common.tf"),
    abspath("terragrunt-config-prod.hcl")
  ]
}

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

@ryan-dyer-sp

from terragrunt-atlantis-config.

awasilyev avatar awasilyev commented on August 16, 2024

Was that really released?
Just checked v0.9.0...v0.9.1 - nothing related.

Asking because hitting same issue with the latest (v1.12.3) version.

from terragrunt-atlantis-config.

awasilyev avatar awasilyev commented on August 16, 2024

@dmattia

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Ya caught me in an embarrassing moment, release v0.9.1 was just because I forgot to bump the version properly in v0.9.0. So the actual changelog to check is from v0.8.0 to v0.9.1: v0.8.0...v0.9.1 which includes this PR: #61.

It's certainly possible that there's still a bug here @awasilyev, so feel free to open a new issue if you'd like. The currently tested feature is that if both a parent and a child have extra_atlantis_dependencies that the two lists will merge.

The test here: https://github.com/transcend-io/terragrunt-atlantis-config/blob/master/cmd/generate_test.go#L237-L242 is an assertion that this output file: https://github.com/transcend-io/terragrunt-atlantis-config/blob/master/cmd/golden/mergeParentDependencies.yaml is generated from this project directory: https://github.com/transcend-io/terragrunt-atlantis-config/tree/master/test_examples/parent_with_extra_deps

If you notice an edge case in your project that's different from that test, or believe that the test may be wonky and does not cover what you need, I would love to work on that in a new issue 😄

from terragrunt-atlantis-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.