Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Pararius/devops
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Continuous Integration

on:
pull_request:

jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Check formatting
run: terraform fmt -check

validate-module:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run terraform init
run: terraform init

- name: Validate module
run: terraform validate
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.terraform/
.terraform.lock.hcl
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Terraform module to manage postgres roles

See [examples/](examples/) for some examples:
* [simple](examples/simple): Bare minimum; can also be used to quickly check impact of changes made to module
* [full](examples/full): Complete example, including provisioning of GCP CloudSQL instance

NOTE: Using this module requires a two step approach using separate `terraform apply` runs:
* Provision the postgres instance itself
* Configure the `postgres` provider and provision (additional) roles using this module
Loading