Git Product home page Git Product logo

Comments (5)

dmattia avatar dmattia commented on August 16, 2024

Thanks for opening this issue!

The generated output supports custom workflows already, so I'm unsure what the defining characteristics would be for workflows that should be kept vs removed from the existing file.

Could you provide an example atlantis.yaml where you believe some workflows should be preserved? And in your example, how would this tool recognize that certain workflows should be kept?

I guess in general, it would be very easy for this tool to preserve existing fields, I'm just not sure why or how it would choose to save certain pre-existing data

from terragrunt-atlantis-config.

 avatar commented on August 16, 2024

lets say i have defined an atlantis.yaml in my repo with the following content

version: 3
projects:
- dir: project1/acm
  workflow: terragrunt
- dir: project1/ecr
  workflow: terragrunt
- dir: project1/ecs
  workflow: terragrunt
- dir: project1/vpc
  workflow: terragrunt
workflows:
  terragrunt:
    plan:
      steps:
      - run: terragrunt plan -no-color -out $PLANFILE
    apply:
      steps:
      - run: terragrunt apply -no-color $PLANFILE

then i run a command to generate the config..

terragrunt-atlantis-config generate --ignore-parent-terragrunt --output ./atlantis.yaml --workflow terragrunt --create-project-name

the newly generated configuration will not include the custom workflows designated in the original file..

parallel_apply: true
parallel_plan: true
projects:
- autoplan:
    enabled: false
    when_modified:
    - '*.hcl'
    - '*.tf*'
  dir: project1/acm/
  name: project1_acm
  workflow: terragrunt
- autoplan:
    enabled: false
    when_modified:
    - '*.hcl'
    - '*.tf*'
  dir: project1/ecr/
  name: project1_ecr
  workflow: terragrunt
- autoplan:
    enabled: false
    when_modified:
    - '*.hcl'
    - '*.tf*'
  dir: project1/ecs/
  name: project1_ecs
  workflow: terragrunt
- autoplan:
    enabled: false
    when_modified:
    - '*.hcl'
    - '*.tf*'
  dir: project1/vpc
  name: project1_vpc
  workflow: terragrunt
version: 3

i am looking for some option flag(s) to allow me to define and recreate the workflows definitions or alternately have the existing workflows persisted into the regenerated document...

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Ah, I forgot workflows can be defined client side, as I define them server side.

I can make this change, thanks for the idea!

from terragrunt-atlantis-config.

dmattia avatar dmattia commented on August 16, 2024

Release v0.10.0 should work for you 😄

https://github.com/transcend-io/terragrunt-atlantis-config/releases/tag/v0.10.0

from terragrunt-atlantis-config.

 avatar commented on August 16, 2024

awesome, thank you

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.