-
Notifications
You must be signed in to change notification settings - Fork 6
/
atlantis.yaml
62 lines (61 loc) · 1.49 KB
/
atlantis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: 3
abort_on_execution_order_fail: true
parallel_plan: false
parallel_apply: false
# The below is the default configuration for autodiscover.mode. When autodiscover.mode is auto, projects will be discovered only if the repo has no projects configured
# autodiscover:
# mode: "auto"
delete_source_branch_on_merge: true
# Automatically merges pull request when all plans are applied.
automerge: false
projects:
- name: s3-backend
dir: s3-backend
terraform_version: "1.5.4"
workflow: infra
execution_order_group: 1
workspace: default
autoplan:
enabled: true
when_modified: ["*.tf", "terraform.tfvars"]
- name: iam
dir: iam
terraform_version: "1.5.4"
workflow: infra
execution_order_group: 2
workspace: default
depends_on: ["s3-backend"]
autoplan:
enabled: true
when_modified: ["*.tf", "terraform.tfvars"]
- name: vpc
dir: vpc
terraform_version: "1.5.4"
workflow: infra
execution_order_group: 3
workspace: default
depends_on: ["iam"]
autoplan:
enabled: true
when_modified: ["*.tf", "terraform.tfvars"]
- name: eks
dir: eks
terraform_version: "1.5.4"
workflow: infra
execution_order_group: 4
workspace: default
depends_on: ["vpc"]
autoplan:
enabled: true
when_modified: ["*.tf", "terraform.tfvars"]
workflows:
infra:
plan:
steps:
- init
- run: pre-commit run -a
- plan
apply:
steps:
- init
- apply