#atlantis (2021-06)
Discuss the Atlantis (<http://runatlantis.io | runatlantis.io>) |
**Archive: ** https://archive.sweetops.com/atlantis/
2021-06-02
can anyone explain this … its happening on all our terraform roots
check atlantis logs
enable debug
check permission of the atlantis user
all we get in the logs is …
{
"level": "error",
"ts": 1622712784.8012686,
"caller": "events/automerger.go:37",
"msg": "automerging failed: unable to merge merge request, it may not be in a mergeable state: PUT <https://gitlab.com/api/v4/projects/redacted/tf-env-security-groups/merge_requests/39/merge>: 405 {message: 405 Method Not Allowed}",
"json": {
"repo": "redacted/tf-env-security-groups",
"pull": "39"
},
"stacktrace": "github.com/runatlantis/atlantis/server/events.(*AutoMerger).automerge\n\t/home/circleci/project/server/events/automerger.go:37\ngithub.com/runatlantis/atlantis/server/events.(*ApplyCommandRunner).Run\n\t/home/circleci/project/server/events/apply_command_runner.go:161\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand\n\t/home/circleci/project/server/events/command_runner.go:212"
}
is there anyone that uses atlantis with a combination of encrypted tfvars files and workspaces? It looks like it should be possible, but just wondering if anyone else has done it before i go down the rabbit hole of spending a day or two getting it implemented
I got a demo working with https://github.com/mozilla/sops quite a few months ago. I didn’t end up going with that approach, but I know it worked not that long ago
Simple and flexible tool for managing secrets. Contribute to mozilla/sops development by creating an account on GitHub.
2021-06-03
2021-06-09
Anyone else using --hide-prev-plan-comments
and using the in built conftest stuff? When posting the conftest results, it is marking the plan as outdated (hiding) ….
we use the flag without conftest but it doesn’t work at all in gitlab
Working now pulled from master rather than latest release
2021-06-18
is there a way to get atlantis to create a workspace if it does not exist?
if is possible in TF, is possible in atlantis
if you are talking about TF workspace
Yes
If the workspace doesn’t exist Atlantis can’t handle it apparently (from my colleague)
Atlantis runs terraform so if the terraform supports it then atlantis will
if terraform does not create the workspace if it does not exist then it will not
and that is NOT the same as a workspace in atlantis
there is no way to dynamically generate the atlantis.yaml with a project name that matches a workspace
there is com terragrunt plugins that can do something like that
You can generate your atlantis.yaml using pre_workflow_hooks
I think the issue is the terraform workspace isn’t being created
But it’s 7pm here in London so everyone has finished work now. I’ll ask again on Monday thanks guys
Are you using custom workflows? I think by default atlantis should create a workspace if it doesn’t exist however it doesn’t work if you’ve got a custom workflow going on.