I'd like to verify that my repos.yaml parses corre...
# atlantis-community
m
I'd like to verify that my repos.yaml parses correctly before I deploy. Is there an atlantis command to do this?
p
we do not have suck command
you can make sure is valid yaml and potentially you can create a json schema file, convert to json and validate
I don't know if there is a similar thing like json schema.for yaml
m
well, I have "valid yaml" but it still causes atlantis to crashloop
for instance, I was getting
Copy code
Error: initializing server: parsing /home/atlantis/repos.yaml file: workflows: (terragrunt: (apply: (steps: (6: step element can only contain a single key, found 3: env,name,value; 8: step element can only contain a single key, found 3: env,name,value.).); plan: (steps: (11: step element can only contain a single key, found 3: env,name,value; 9: step element can only contain a single key, found 3: env,name,value.)
so just not valid to atlantis
if I could just get a
--dry-run
option or something for atlantis to load all configs but then exit
and not care about gh/gitlab/etc authentication
p
I understand, it will be useful to have such option but I think having a schema of some sort will be easier to maintain
r
that would be a nice thing to run, like an
atlantis validate
command
m
yes that's what I was thinking
r
it would be a good sanity check you could setup as a github action in a PR 🙂
it doesn’t exist tho so we’d need a PR to atlantis if you’re willing 🙏
unless there is a way to do it using the cli today
m
I couldn't figure out how to do it from the CLI