https://www.runatlantis.io/ logo
Title
m

Marcelo Gomes

03/16/2023, 4:11 PM
Hi! I'm trying to do the Atlantis configurations for Slack Bot but unfortunately I don't know in which file I should put the configuration block:
webhooks:
    - event: apply
      workspace-regex: .*
      kind: slack
      channel: atlantis-info
I have an
atlantis.yaml
generated by terragrunt-atlantis-config with this:
terragrunt-atlantis-config generate --output=atlantis.yaml --parallel=true --filter=live/$ATLANTIS_ENV --apply-requirements=[mergeable]
and a
repo.yaml
file with terragrunt workflow. I'm not sure how I should approach this Slack integration problem.
p

PePe Amengual

03/16/2023, 4:22 PM
this is a startup config parameter
does not go on atlantis.yaml or repo.yaml
m

Marcelo Gomes

03/16/2023, 4:32 PM
can I pass it like an env var? like this:
atlantis server --config="my/config/file.yaml"
# or
ATLANTIS_CONFIG="my/config/file.yaml"
and then I copy my config.yaml to my dockerfile
p

PePe Amengual

03/16/2023, 4:33 PM
I think you can
r

RB

03/16/2023, 5:41 PM
I think it goes in repo config json
I use terraform to deploy so it reads the repo yaml into string json and then passes it into that env var
p

PePe Amengual

03/16/2023, 5:44 PM
mmm I don't think so, I remember adding a note in the slack docs because people tend to get confused
👍 1
but there was an issue or PR that tried to move it to the repo. yaml