Skip to content

Commit

Permalink
Update DB Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Weyder Ferreira committed Jan 12, 2023
1 parent cf5aae6 commit 454938d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion rds/db-option-group/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ No modules.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_engine_name"></a> [engine\_name](#input\_engine\_name) | The family database engine | `string` | n/a | yes |
| <a name="input_major_engine_version"></a> [major\_engine\_version](#input\_major\_engine\_version) | The version of the database | `number` | n/a | yes |
| <a name="input_major_engine_version"></a> [major\_engine\_version](#input\_major\_engine\_version) | The version of the database | `string` | n/a | yes |
| <a name="input_name"></a> [name](#input\_name) | The name of RDS Option Group | `string` | n/a | yes |
| <a name="input_option_group_description"></a> [option\_group\_description](#input\_option\_group\_description) | The description, pourpose of the option group | `string` | `null` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | The list of Tags | `map(string)` | `{}` | no |
Expand Down
24 changes: 12 additions & 12 deletions rds/db-option-group/vars.tf
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
variable "name" {
type = string
description = "The name of RDS Option Group"
type = string
description = "The name of RDS Option Group"
}
variable "option_group_description" {
type = string
default = null
description = "The description, pourpose of the option group"
type = string
default = null
description = "The description, pourpose of the option group"
}
variable "engine_name" {
type = string
description = "The family database engine"
type = string
description = "The family database engine"

}
variable "major_engine_version" {
type = number
description = "The version of the database"
type = string
description = "The version of the database"

}
variable "tags" {
type = map(string)
default = {}
description = "The list of Tags"
type = map(string)
default = {}
description = "The list of Tags"
}
4 changes: 4 additions & 0 deletions rds/db-parameter-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ resource "aws_db_parameter_group" "dpg" {
}
}

lifecycle {
create_before_destroy = true
}

tags = var.tags
}
24 changes: 12 additions & 12 deletions rds/db-parameter-group/vars.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
variable "name" {
type = string
description = "The name of Parameter Group resource"
type = string
description = "The name of Parameter Group resource"
}

variable "description" {
type = string
description = "The description of Parameter Group resource"
type = string
description = "The description of Parameter Group resource"
}

variable "family" {
type = string
description = "The Family RDS used"
type = string
description = "The Family RDS used"
}

variable "parameters" {
type = list(map(string))
default = []
description = "(Optional) A list of DB parameters to apply. Note that parameters may differ from a family to an other."
type = list(map(string))
default = []
description = "(Optional) A list of DB parameters to apply. Note that parameters may differ from a family to an other."
}

variable "tags" {
type = map(string)
default = {}
description = "The Tag list"
type = map(string)
default = {}
description = "The Tag list"
}

0 comments on commit 454938d

Please sign in to comment.