Skip to content

Commit

Permalink
docs: Example of providing server yaml configuration (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode committed May 4, 2021
1 parent a66c3fd commit 6cce597
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,39 @@ module "atlantis" {
}
```

### Provide Atlantis with server yaml configuration

`server-atlantis.yaml`
```yaml
repos:
- id: /.*/
allow_custom_workflows: true
allowed_overrides:
- apply_requirements
- workflow
apply_requirements:
- approved
workflow: default
```
`main.tf`
```hcl
module "atlantis" {
source = "terraform-aws-modules/atlantis/aws"
# ...
custom_environment_variables = [
{
"name" : "ATLANTIS_REPO_CONFIG_JSON",
"value" : jsonencode(yamldecode(file("${path.module}/server-atlantis.yaml"))),
},
]
# ...
}
```

### Run Atlantis as a part of an existing AWS infrastructure (use existing VPC)

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

0 comments on commit 6cce597

Please sign in to comment.