Skip to content

Commit a570602

Browse files
committed
Add codeowners to repo
1 parent fe158c5 commit a570602

File tree

2 files changed

+2
-74
lines changed

2 files changed

+2
-74
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @immutable/sre

README.md

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3,79 +3,6 @@ Terraform Provider for PostgreSQL
33

44
This provider allows to manage with Terraform [Postgresql](https://www.postgresql.org/) objects like databases, extensions, roles, etc..
55

6-
It's published on the [Terraform registry](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs).
7-
It replaces https://github.com/hashicorp/terraform-provider-postgresql since Hashicorp stopped hosting community providers in favor of the Terraform registry.
6+
It's an extension of [Terraform registry](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs).
87

98
- Documentation: https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs
10-
11-
Requirements
12-
------------
13-
14-
- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
15-
- [Go](https://golang.org/doc/install) 1.16 (to build the provider plugin)
16-
17-
Building The Provider
18-
---------------------
19-
20-
Clone repository to: `$GOPATH/src/github.com/cyrilgdn/terraform-provider-postgresql`
21-
22-
```sh
23-
$ mkdir -p $GOPATH/src/github.com/cyrilgdn; cd $GOPATH/src/github.com/cyrilgdn
24-
$ git clone git@github.com:cyrilgdn/terraform-provider-postgresql
25-
```
26-
27-
Enter the provider directory and build the provider
28-
29-
```sh
30-
$ cd $GOPATH/src/github.com/cyrilgdn/terraform-provider-postgresql
31-
$ make build
32-
```
33-
34-
Using the provider
35-
----------------------
36-
37-
Usage examples can be found in the Terraform [provider documentation](https://www.terraform.io/docs/providers/postgresql/index.html)
38-
39-
Developing the Provider
40-
---------------------------
41-
42-
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
43-
44-
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
45-
46-
```sh
47-
$ make build
48-
...
49-
$ $GOPATH/bin/terraform-provider-postgresql
50-
...
51-
```
52-
53-
In order to test the provider, you can simply run `make test`.
54-
55-
```sh
56-
$ make test
57-
```
58-
59-
In order to run the full suite of Acceptance tests, run `make testacc`.
60-
61-
*Note:*
62-
- Acceptance tests create real resources, and often cost money to run.
63-
64-
```sh
65-
$ make testacc
66-
```
67-
68-
In order to manually run some Acceptance test locally, run the following commands:
69-
```sh
70-
# spins up a local docker postgres container
71-
make testacc_setup
72-
73-
# Load the needed environment variables for the tests
74-
source tests/switch_superuser.sh
75-
76-
# Run the test(s) that you're working on as often as you want
77-
TF_LOG=INFO go test -v ./postgresql -run ^TestAccPostgresqlRole_Basic$
78-
79-
# cleans the env and tears down the postgres container
80-
make testacc_cleanup
81-
```

0 commit comments

Comments
 (0)