diff --git a/README.md b/README.md index 1577ed6..e790c44 100644 --- a/README.md +++ b/README.md @@ -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 = [ { @@ -88,7 +88,6 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [cluster\_name](#input\_cluster\_name) | The name of the database cluster. | `string` | n/a | yes | -| [common\_tags](#input\_common\_tags) | A list of tag names to be applied to the database cluster. | `set(string)` | `[]` | no | | [database\_users](#input\_database\_users) | List of users. | `set(string)` | `[]` | no | | [firewall\_rules](#input\_firewall\_rules) | List of trusted sources associated with the cluster. |
list(object({| `[]` | no | | [node\_count](#input\_node\_count) | Number of postgresql nodes that will be created. | `number` | `1` | no | @@ -100,6 +99,7 @@ No modules. | [replica\_firewall\_rules](#input\_replica\_firewall\_rules) | List of trusted sources associated with the replica cluster. |
type = string
value = string
}))
list(object({| `[]` | no | | [replica\_node\_size](#input\_replica\_node\_size) | The postgresql replica node instance size. | `string` | `"db-s-1vcpu-1gb"` | no | | [replica\_region](#input\_replica\_region) | DigitalOcean replica region where the cluster will reside. | `string` | `null` | no | +| [tags](#input\_tags) | A list of tag names to be applied to the database cluster. | `set(string)` | `[]` | no | | [timezone](#input\_timezone) | PostgreSQL service timezone | `string` | `"UTC"` | no | | [vpc\_uuid](#input\_vpc\_uuid) | The ID of the VPC where the load balancer will be located. | `string` | `null` | no | diff --git a/examples/create_postgresql_database/main.tf b/examples/create_postgresql_database/main.tf index f26bc94..d0ce22f 100644 --- a/examples/create_postgresql_database/main.tf +++ b/examples/create_postgresql_database/main.tf @@ -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 = [ { diff --git a/main.tf b/main.tf index 3bb4a06..004c304 100644 --- a/main.tf +++ b/main.tf @@ -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 } diff --git a/variables.tf b/variables.tf index 491d14a..7cea68e 100644 --- a/variables.tf +++ b/variables.tf @@ -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 = []
type = string
value = string
}))