From 22ac23f88cdadf0d0bb6c13b2f5a86db734b4ea1 Mon Sep 17 00:00:00 2001 From: mayank0202 Date: Wed, 29 Nov 2023 23:05:11 +0000 Subject: [PATCH] Merge pull request #7 from sourcefuse/feature/postgresql-precommit-fixes Feature/postgresql precommit fixes --- .../README.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/docs/arc-iac-docs/modules/terraform-postgresql-aws-arc-mgmt/README.md b/docs/arc-iac-docs/modules/terraform-postgresql-aws-arc-mgmt/README.md index 3f54e5614..6f1258bc2 100644 --- a/docs/arc-iac-docs/modules/terraform-postgresql-aws-arc-mgmt/README.md +++ b/docs/arc-iac-docs/modules/terraform-postgresql-aws-arc-mgmt/README.md @@ -35,3 +35,48 @@ required_providers { ``` +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | ~> 1.4 | +| [aws](#requirement\_aws) | ~> 5.0 | +| [postgresql](#requirement\_postgresql) | ~> 1.21 | + +## Providers + +| Name | Version | +|------|---------| +| [aws](#provider\_aws) | 5.28.0 | +| [postgresql](#provider\_postgresql) | 1.21.0 | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [aws_ssm_parameter.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource | +| [postgresql_database.pg_db](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/database) | resource | +| [postgresql_default_privileges.pg_default_privileges](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/default_privileges) | resource | +| [postgresql_role.pg_role](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/role) | resource | +| [postgresql_schema.pg_schema](https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/schema) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [pg\_roles](#input\_pg\_roles) | A map of objects where each key-value pair represents a PostgreSQL role |
map(object({
postgres_role_name = string
login = string
password = string
}))
| n/a | yes | +| [pg\_ssm\_parameters](#input\_pg\_ssm\_parameters) | postgresql SSM parameters |
map(object({
name = string
type = string
password = string
}))
| n/a | yes | +| [postgresql\_database](#input\_postgresql\_database) | A map where each key-value pair represents a PostgreSQL database configuration |
map(object({
db_name = string
db_owner = string
template = optional(string, null)
lc_collate = optional(string, null)
connection_limit = optional(string, null)
allow_connections = optional(string, null)
}))
| n/a | yes | +| [postgresql\_default\_privileges](#input\_postgresql\_default\_privileges) | configuration block for postgresql default privileges |
map(object({
role = string
database = string
schema = string
owner = string
object_type = string
privileges = list(string)
}))
| n/a | yes | +| [postgresql\_schema](#input\_postgresql\_schema) | configuration block for postgresql schema |
map(object({
schema_name = string
schema_owner = optional(string, null)
database = optional(string, null)
if_not_exists = optional(string, null)
drop_cascade = optional(string, null)

policy = optional(list(object({
usage = optional(string, null)
role = optional(string, null)
})), [])
}))
| n/a | yes | + +## Outputs + +| Name | Description | +|------|-------------| +| [arn](#output\_arn) | ARN of the parameter | +