Skip to content

Commit 6cce597

Browse files
authored
docs: Example of providing server yaml configuration (#205)
1 parent a66c3fd commit 6cce597

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,39 @@ module "atlantis" {
7878
}
7979
```
8080

81+
### Provide Atlantis with server yaml configuration
82+
83+
`server-atlantis.yaml`
84+
```yaml
85+
repos:
86+
- id: /.*/
87+
allow_custom_workflows: true
88+
allowed_overrides:
89+
- apply_requirements
90+
- workflow
91+
apply_requirements:
92+
- approved
93+
workflow: default
94+
```
95+
96+
`main.tf`
97+
```hcl
98+
module "atlantis" {
99+
source = "terraform-aws-modules/atlantis/aws"
100+
101+
# ...
102+
103+
custom_environment_variables = [
104+
{
105+
"name" : "ATLANTIS_REPO_CONFIG_JSON",
106+
"value" : jsonencode(yamldecode(file("${path.module}/server-atlantis.yaml"))),
107+
},
108+
]
109+
110+
# ...
111+
}
112+
```
113+
81114
### Run Atlantis as a part of an existing AWS infrastructure (use existing VPC)
82115

83116
This way allows integration with your existing AWS resources - VPC, public and private subnets. Specify the following arguments (see methods described above):

0 commit comments

Comments
 (0)