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

Empty atlantis.yaml in some PRs #378

Open
marcelmedeiros1 opened this issue Feb 10, 2025 · 0 comments
Open

Empty atlantis.yaml in some PRs #378

marcelmedeiros1 opened this issue Feb 10, 2025 · 0 comments

Comments

@marcelmedeiros1
Copy link

marcelmedeiros1 commented Feb 10, 2025

Bug report

We are facing a issue that some atlantis.yaml for some PRs are being generated empty.

We are using this script to generate the config:

# Script name
LOGGING_NS="$0"

echo "[${LOGGING_NS}] ==> Generating atlantis configuration for the current project...\n"

terragrunt-atlantis-config generate --autoplan --ignore-parent-terragrunt --parallel --create-project-name --terraform-version $TERRAFORM_VERSION --output pre-atlantis.yaml
cat pre-atlantis.yaml | grep -vE ".*(\/terragrunt|\/kubernetes)\.hcl$" | grep -vE ".*modules.*" > atlantis.yaml

echo "[${LOGGING_NS}] > + Atlantis config updated...\n"

The script is executed before every plan, apply, etc.
Any thoughts?

parsing atlantis.yaml: version: is required. If you've just upgraded Atlantis you need to rewrite your atlantis.yaml for version 3
I'm receiving this because atlantis.yaml is being created, but without any content

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

No branches or pull requests

1 participant