# terraform-static-postgresql **Repository Path**: walrus-catalog/terraform-static-postgresql ## Basic Information - **Project Name**: terraform-static-postgresql - **Description**: Reuse existing PostgreSQL service. - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-27 - **Last Updated**: 2024-02-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PostgreSQL Static Template This is a static template for PostgreSQL service. ## Examples - [Complete](./examples/complete) ## Contributing Please read our [contributing guide](./docs/CONTRIBUTING.md) if you're interested in contributing to Walrus template. ## Requirements | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | ## Providers No providers. ## Modules No modules. ## Resources No resources. ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [context](#input\_context) | Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.

Examples:
context:
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
| `map(any)` | `{}` | no | | [database](#input\_database) | The name of the PostgreSQL database to access. | `string` | `""` | no | | [hosts](#input\_hosts) | The host list of the PostgreSQL service. | `list(string)` | n/a | yes | | [hosts\_readonly](#input\_hosts\_readonly) | The readonly host list of the PostgreSQL service. | `list(string)` | `[]` | no | | [password](#input\_password) | The password of the account to access the database. | `string` | n/a | yes | | [port](#input\_port) | The port of the PostgreSQL service. | `number` | `5432` | no | | [username](#input\_username) | The username of the account to access the database. | `string` | n/a | yes | ## Outputs | Name | Description | |------|-------------| | [address](#output\_address) | The address, a string only has host, might be a comma separated string or a single string. | | [address\_readonly](#output\_address\_readonly) | The readonly address, a string only has host, might be a comma separated string or a single string. | | [connection](#output\_connection) | The connection, a string combined host and port, might be a comma separated string or a single string. | | [connection\_readonly](#output\_connection\_readonly) | The readonly connection, a string combined host and port, might be a comma separated string or a single string. | | [context](#output\_context) | The input context, a map, which is used for orchestration. | | [database](#output\_database) | The name of PostgreSQL database to access. | | [password](#output\_password) | The password of the account to access the database. | | [port](#output\_port) | The port of the service. | | [refer](#output\_refer) | The refer, a map, including hosts, ports and account, which is used for dependencies or collaborations. | | [username](#output\_username) | The username of the account to access the database. | ## License Copyright (c) 2023 [Seal, Inc.](https://seal.io) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [LICENSE](./LICENSE) file for details. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.