Skip to content

Adding multiple directories for a project in the atlantis.yaml file #1891

Answered by antonblr
Asiya-Yunusa asked this question in Q&A
Discussion options

You must be logged in to vote

@Asiya-Yunusa - you will have to split it into multiple projects, i.e.:

version: 3
projects:
- name: ec2-eu-west-1
  dir: terraform/aws/eu-west-1/ec2_resources
  autoplan:
    when_modified: 
     - "*.tf"
- name: ec2-us-east-1
  dir: terraform/aws/us-east-1/ec2_resources
  autoplan:
    when_modified: 
     - "*.tf" 

dir: key is a sting

Dir *string `yaml:"dir,omitempty"`

and multiple dir: keys won't be allowed by yaml specs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Asiya-Yunusa
Comment options

Answer selected by nitrocode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants