Skip to content

Commit 263dfb5

Browse files
committed
revise readmes to ref automation and sync the roles and dbs created
1 parent 97964e6 commit 263dfb5

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Banner][banner-image]](https://masterpoint.io/)
22

3-
# terraform-postgres-dbs-roles
3+
# terraform-postgres-automation
44

55
[![Release][release-badge]][latest-release]
66

@@ -31,8 +31,8 @@ provider "postgresql" {
3131
sslmode = "disable"
3232
}
3333
34-
module "logical_dbs" {
35-
source = "git::https://github.com/masterpointio/terraform-postgres-admin.git?ref=main"
34+
module "postgres_automation" {
35+
source = "git::https://github.com/masterpointio/terraform-postgres-automation.git?ref=main"
3636
3737
databases = [
3838
{
@@ -259,8 +259,8 @@ Copyright © 2016-2025 [Masterpoint Consulting LLC](https://masterpoint.io/)
259259
[newsletter-url]: https://newsletter.masterpoint.io/
260260
[youtube-badge]: https://img.shields.io/badge/YouTube-Subscribe-D191BF?style=for-the-badge&logo=youtube&logoColor=white
261261
[youtube-url]: https://www.youtube.com/channel/UCeeDaO2NREVlPy9Plqx-9JQ
262-
[release-badge]: https://img.shields.io/github/v/release/masterpointio/terraform-postgres-logical-dbs?color=0E383A&label=Release&style=for-the-badge&logo=github&logoColor=white
263-
[latest-release]: https://github.com/masterpointio/terraform-postgres-logical-dbs/releases/latest
264-
[contributors-image]: https://contrib.rocks/image?repo=masterpointio/terraform-postgres-logical-dbs
265-
[contributors-url]: https://github.com/masterpointio/terraform-postgres-logical-dbs/graphs/contributors
266-
[issues-url]: https://github.com/masterpointio/terraform-postgres-logical-dbs/issues
262+
[release-badge]: https://img.shields.io/github/v/release/masterpointio/terraform-postgres-automation?color=0E383A&label=Release&style=for-the-badge&logo=github&logoColor=white
263+
[latest-release]: https://github.com/masterpointio/terraform-postgres-automation/releases/latest
264+
[contributors-image]: https://contrib.rocks/image?repo=masterpointio/terraform-postgres-automation
265+
[contributors-url]: https://github.com/masterpointio/terraform-postgres-automation/graphs/contributors
266+
[issues-url]: https://github.com/masterpointio/terraform-postgres-automation/issues

examples/complete/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Example: Complete Setup for PostgreSQL Logical Databases
1+
# Example: Complete Setup
22

3-
This example demonstrates how to set up PostgreSQL logical databases and roles using Terraform. It includes configurations for both an application role and a read-only role.
3+
This example demonstrates how to set up the Terraform Postgres Automation.
4+
5+
It includes configurations for both an application role and a read-only role.
46

57
## Prerequisites
68

@@ -23,12 +25,12 @@ This example demonstrates how to set up PostgreSQL logical databases and roles u
2325

2426
The `fixtures.tfvars` file defines two roles:
2527

26-
- **app1_app_user**: This role is intended for application use with the following permissions:
28+
- **system_user**: This role is intended for application use with the following permissions:
2729

2830
- Can log in and is not a superuser.
29-
- Has all privileges on tables and sequences in the `app1_db` database.
31+
- Has all privileges on tables and sequences in the `app` database.
3032
- Can use and create within the `public` schema.
3133

32-
- **app1_readonly_user**: This role is intended for read-only access with the following permissions:
34+
- **readonly_user**: This role is intended for read-only access with the following permissions:
3335
- Can log in and is not a superuser.
34-
- Has `SELECT` privileges on tables and `USAGE`, `SELECT` on sequences in the `app1_db` database.
36+
- Has `SELECT` privileges on tables and `USAGE`, `SELECT` on sequences in the `app` database.

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# complete/main.tf
22

3-
module "app_dbs" {
3+
module "postgres_automation" {
44
source = "../../"
55

66
databases = var.databases

examples/complete/outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
output "databases" {
2-
value = module.app_dbs.databases
2+
value = module.postgres_automation.databases
33
}
44

55
output "database_access" {
6-
value = module.app_dbs.database_access
6+
value = module.postgres_automation.database_access
77
}
88

99
output "default_privileges" {
10-
value = module.app_dbs.default_privileges
10+
value = module.postgres_automation.default_privileges
1111
}
1212

1313
output "schema_access" {
14-
value = module.app_dbs.schema_access
14+
value = module.postgres_automation.schema_access
1515
}
1616

1717
output "table_access" {
18-
value = module.app_dbs.table_access
18+
value = module.postgres_automation.table_access
1919
}

0 commit comments

Comments
 (0)