8000 Unitfy tag variable by michaltomczuk · Pull Request #22 · opsd-io/terraform-module-digitalocean-postgresql · GitHub
[go: up one dir, main page]

Skip to content

Unitfy tag variable #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2024
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "postgresql" {
node_size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
common_tags = ["postgresql", "production"]
tags = ["postgresql", "production"]
database_users = ["Admin", "Mark", "Robert"]
firewall_rules = [
{
Expand Down Expand Up @@ -88,7 +88,6 @@ No modules.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the database cluster. | `string` | n/a | yes |
| <a name="input_common_tags"></a> [common\_tags](#input\_common\_tags) | A list of tag names to be applied to the database cluster. | `set(string)` | `[]` | no |
| <a name="input_database_users"></a> [database\_users](#input\_database\_users) | List of users. | `set(string)` | `[]` | no |
| <a name="input_firewall_rules"></a> [firewall\_rules](#input\_firewall\_rules) | List of trusted sources associated with the cluster. | <pre>list(object({<br> type = string<br> value = string<br> }))</pre> | `[]` | no |
| <a name="input_node_count"></a> [node\_count](#input\_node\_count) | Number of postgresql nodes that will be created. | `number` | `1` | no |
Expand All @@ -100,6 +99,7 @@ No modules.
| <a name="input_replica_firewall_rules"></a> [replica\_firewall\_rules](#input\_replica\_firewall\_rules) | List of trusted sources associated with the replica cluster. | <pre>list(object({<br> type = string<br> value = string<br> }))</pre> | `[]` | no |
| <a name="input_replica_node_size"></a> [replica\_node\_size](#input\_replica\_node\_size) | The postgresql replica node instance size. | `string` | `"db-s-1vcpu-1gb"` | no |
| <a name="input_replica_region"></a> [replica\_region](#input\_replica\_region) | DigitalOcean replica region where the cluster will reside. | `string` | `null` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A list of tag names to be applied to the database cluster. | `set(string)` | `[]` | no |
| <a name="input_timezone"></a> [timezone](#input\_timezone) | PostgreSQL service timezone | `string` | `"UTC"` | no |
| <a name="input_vpc_uuid"></a> [vpc\_uuid](#input\_vpc\_uuid) | The ID of the VPC where the load balancer will be located. | `string` | `null` | no |

Expand Down
2 changes: 1 addition & 1 deletion examples/create_postgresql_database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "postgresql" {
node_size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
common_tags = ["production"]
tags = ["production"]
database_users = ["Admin", "Mark", "Robert"]
firewall_rules = [
{
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "digitalocean_database_cluster" "main" {
size = var.node_size
region = var.region
node_count = var.node_count
tags = var.common_tags
tags = var.tags
private_network_uuid = var.vpc_uuid
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ variable "replica_region" {
default = null
}

variable "common_tags" {
variable "tags" {
description = "A list of tag names to be applied to the database cluster."
type = set(string)
default = []
Expand Down
Loading
0