This message was deleted.
# atlantis-community
s
This message was deleted.
p
you need :
Copy code
## Use Server Side Repo Config,
## ref: <https://www.runatlantis.io/docs/server-side-repo-config.html>
## Example default configuration
repoConfig: |
#  ---
repos:
  - id: /.*/
    workflow: default
    allowed_overrides: [apply_requirements]
    allow_custom_workflows: false
s
Hmm…I removed that line I overlooked and I still get the same error
p
are you sure the repo configs is being parsed correctly?
did you check the debug logs to see if is actually being parsed?
s
As far as I can tell it is. Other things that are set in there are working. No erros in the logs until I try to push something or run plan.
p
mmm
latest version of atlantis?
s
chart: atlantis-4.10.2. newer one came out yesterday…4.12.4. I can try and bump to that and see
p
please do
s
So im running latest greatest and I still get that same error. Ive tried a few more things and its still not working. The syntax for those files is correct yes?
p
I will remove the yaml anchors just to make sure, just to try to make the file the simples possible
and see if it reads it
s
I have played with this a little more. If I comment out what I have above in the values.yaml file then my plans and applies work. If I enable that block the config files are not being read fully. Parts of it are because I can still run plans. If I try to run an apply after approving the pr Atlantis throws an error that my role does not have the correct permissions for Put or Get from my DynamoDB table. If I comment that block out again it all works fine. 🤷
Figured it out finally…I think my yaml linter was messing with me…This works now… The double space at the beginning of those lower lines was the trick.
Copy code
repoConfig: |
 ---
 repos:
 - id: /.*/
   workflow: default
   allowed_overrides: [apply_requirements]
   apply_requirements: [approved]
p
ahhhhhhh I told you!!!! LOL , glad you figure it out
that is one thing I hate about yaml….
s
Yea…I dont know who decided that was a good idea….i can read json all day long but I get lost reading yaml when its super long like this values file is. Thanks for the help.
p
I didn’t do anything, you did