This message was deleted.
# atlantis-community
s
This message was deleted.
p
did you commited an atlantis.yaml file in your repo?
a
yes, this is how I run atlantis: ./atlantis server --atlantis-url="http://atlantis.domain.com" --gitlab-user="gitlab.user" --gitlab-token="gitlab-token" --gitlab-webhook-secret="gitlab-webhook-secret" --gitlab-hostname="gitlab.domain.com" --repo-allowlist="gitlab.domain.com/devops_only/terraform_v3/*" this is what atlantis.yaml looks like at the root of the repository at the moment:
Copy code
version: 3
repos:
- id: /.*/
  allowed_overrides: [workflow]
  allow_custom_workflows: true
projects:
  - dir: project/dev/eks
    workspace: default
    workflow: default
  - dir: project/dev/elcash
    workspace: default
    workflow: default
  - dir: project/dev/mongo_atlas
    workspace: default
    workflow: default
workflows:
  default:
    plan:
      steps:
      - init
      - plan
    apply:
      steps:
      - apply
p
I do not think that is indented correctly
a
also checked many times
maybe I just can’t figure out where exactly? Can you advice?
p
ahhh you are mixing things
atlantis.yaml is a repo level file , committed to the repo, or autogenerated
the server side repo config is instantiated at the server level
you are mixing both in one file
you can’t define project on the server side config
a
Let me clarify whether I understood correctly, I delete фtlantis.yaml from the repository, transfer the “projects” configuration block to repos.yaml and launch Atlantis with the key --repo-config=repos.yaml?
p
no
you can’t do that
there is a server side repo config that is apply to all repoz and only accepts some keys
and there is a atlantis.yaml repo level config that where you can configure projects and other keys
they are not interchangeable
read the docs on both types and you will understand
a
oh, I'm sorry, I read "you can" instead of "you can't" thank you, I will review it
p
no problem
a
ohhhhh, the problem is that in this particular repository I'm testing on, a colleague has applied new permissions and roles for the test and hasn't reported it yet 🫠