This message was deleted.
# atlantis-community
s
This message was deleted.
p
can you post your repo config and Atlantis.yaml if you have any?
d
Thanks for the response, I have them. repoConfig from values.yaml:
Copy code
repoConfig: |

   repos:
   - id: github.com/myorg/infrastructure-v2
     branch: /.*/
    # repo_config_file: ./atlantis.yaml 
     abort_on_execution_order_fail: true
     plan_requirements: [approved, mergeable, undiverged]
     apply_requirements: [approved, mergeable, undiverged]
     import_requirements: [approved, mergeable, undiverged]
     workflow: custom
     allowed_overrides: [apply_requirements, workflow, delete_source_branch_on_merge, repo_locking, custom_policy_check]
     allowed_workflows: [custom]
     allow_custom_workflows: true
     delete_source_branch_on_merge: true
     repo_locking: true
  # projects:
  #  - name: my-project-name
  #    branch: /main/
  #    dir: .
  #    workspace: default
  #    terraform_version: v0.12.0
  #    delete_source_branch_on_merge: true
  #    repo_locking: true
  #    custom_policy_check: false
  #    autoplan:
  #      when_modified: ["*.tf", "../modules/**/*.tf", ".terraform.lock.hcl"]
  #      enabled: true
  workflows:
     custom:
       plan:
         steps: [init, plan]
       apply:
         steps: [apply]
     metrics:
       prometheus:
         endpoint: /metrics
         port: 9090 #The port where metrics are exposed.
atlantis.yaml from repo root folder:
Copy code
version: 3
automerge: true
delete_source_branch_on_merge: true
parallel_plan: true
parallel_apply: true
abort_on_execution_order_fail: true
projects:
 - name: my-project-name
   branch: /atlantis-test
   dir: .
   workspace: default
   terraform_version: v0.11.0
   delete_source_branch_on_merge: true
   repo_locking: true
   custom_policy_check: false
   autoplan:
    when_modified: ["*.tf", "../modules/**/*.tf", ".terraform.lock.hcl"]
    enabled: true
    plan_requirements: [mergeable, undiverged]
   apply_requirements: [mergeable, approved, undiverged]
    import_requirements: [mergeable, approved, undiverged]
    execution_order_group: 1
allowed_regexp_prefixes:
 - dev/
 - staging/
update, with the default repoConfig definition that comes with the helm chart, i get this error when enabling the metrics:
Copy code
Error: initializing server: parsing /etc/atlantis/repos.yaml file: yaml: unmarshal errors:                                                                                                                                                        │
│   line 14: field metrics not found in type raw.GlobalCfg
p
metrics is indented wrong
it should be at the level of workflows
d
Thank you ! PePe
I am now trying to configure the import feature, but i am running into 2 issues: 1.
atlantis import
gives out:
Copy code
Error: unknown command "import".
Run 'atlantis --help' for usage.
In my `values.yaml`file i have added `import`:
Copy code
environment:
    ATLANTIS_DEFAULT_TF_VERSION: v1.6.3 
    ATLANTIS_STATS_NAMESPACE: "atlantis"
    ATLANTIS_ALLOW_COMMANDS: "version,plan,import,apply,unlock,approve_policies"
2. Getting this error:
Copy code
parsing atlantis.yaml: yaml: unmarshal errors:
  line 24: field steps not found in type raw.Workflow
with
atlantis.yaml
defined like this:
Copy code
version: 3
#automerge: true
#delete_source_branch_on_merge: true
#parallel_plan: true
#parallel_apply: true
#abort_on_execution_order_fail: true
projects:
 - name: my-project-name
   #branch: /atlantis-test
   dir: .
   #workspace: default
   workflow: import
   terraform_version: v1.6.3
   #delete_source_branch_on_merge: true
   #repo_locking: true
   #custom_policy_check: false
   autoplan:
    when_modified: ["*.tf", "../modules/**/*.tf", ".terraform.lock.hcl"]
    enabled: true
   apply_requirements: [mergeable, approved, undiverged]
   #execution_order_group: 1
workflows:
    import:
      steps:
        - init
        - import
#allowed_regexp_prefixes:
# - dev/
# - staging/
I would also like to know how to configure the
import
feature, an example would be very useful.