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

Example Atlantis Workplan #346

Open
sbquinlan opened this issue Jul 30, 2024 · 0 comments
Open

Example Atlantis Workplan #346

sbquinlan opened this issue Jul 30, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@sbquinlan
Copy link

Feature Request

Please document an example Atlantis workplan that works with the example terragrunt-atlantis-config pre_workflow_hooks in the documentation:

      "workflow": "default",
      "pre_workflow_hooks": [
        {
          "run": "terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel --create-workspace"
        }
      ]

Why is this helpful?

While I don't expect terragrunt-atlantis-config to re-document all the Atlantis workplan options and configuration, an example workplan would go a long way.

What alternatives exist today?

The Atlantis documentation provides example workplans for terragrunt in their Custom Workflows section. This example does not support the workspaces that the example terragrunt-atlantis-config recommends (--parallel --create-workspace). This leaves me reverse engineering the workplan that might work with this config.

workflows:
  terragrunt:
    plan:
      steps:
      - env:
          name: TERRAGRUNT_TFPATH
          command: 'echo "terraform${ATLANTIS_TERRAFORM_VERSION}"'
      - env:
          # Reduce Terraform suggestion output
          name: TF_IN_AUTOMATION
          value: 'true'
      - run:
          # Allow for targetted plans/applies as not supported for Terraform wrappers by default
          command: terragrunt plan -input=false $(printf '%s' $COMMENT_ARGS | sed 's/,/ /g' | tr -d '\\') -no-color -out $PLANFILE
          output: hide
      - run: |
          terragrunt show $PLANFILE
@Almenon Almenon added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants