This message was deleted.
# atlantis-community
s
This message was deleted.
p
you will need a custom workflow
in your atlantis.yamls
j
So something like this?
Copy code
version: 3
projects:
# If two or more projects have the same dir and workspace, they must also have
# a 'name' key to differentiate them.
- name: staging-service
  dir: environments/staging/service
  workflow: staging
  plan_requirements: [mergeable, approved, undiverged]
  apply_requirements: [mergeable, approved, undiverged]
- name: testing-service
  dir: environments/testing/service
  workflow: testing
  plan_requirements: [mergeable, approved, undiverged]
  apply_requirements: [mergeable, approved, undiverged]
workflows:
    testing:
      plan:
        steps:
        - env:
            name: TF_VAR_gcp_credentials
            command: 'echo "$TF_VAR_gcp_credentials_testing"'
        - run: echo "In Terraform Init and Plan"
        - init
        - plan
    staging:
      plan:
        steps:
        - env:
            name: TF_VAR_gcp_credentials
            command: 'echo "$TF_VAR_gcp_credentials_staging"'
        - run: echo "In Terraform Init and Plan"
        - init
        - plan
Then when it runs atlantis plan on the comment it will know which workflow to use or will I still need to run
atlantis plan -p
p
did you try it?
I don't use autoplan but I think it should work
j
Yea bunch of times it was getting this error
parsing atlantis.yaml: repo config not allowed to set 'workflow' key: server-side config needs 'allowed_overrides: [workflow]'
but have that set in the atlantis helm chart
Nevermind was able to figure it out thank you though
p
could you explain how you fix it?