Skip to content

Commit 1dd1264

Browse files
authored
Merge pull request #36 from g1t-out/main
Add option to set ca_cert_identifier for the DB
2 parents 2641a3c + 68e5ef9 commit 1dd1264

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This terraform deploys an RDS instance.
66
## Usage
77
```hcl
88
module "rds" {
9-
source = "github.com/byu-oit/terraform-aws-rds?ref=v3.0.0"
9+
source = "github.com/byu-oit/terraform-aws-rds?ref=v3.1.0"
1010
1111
identifier = "example"
1212
engine = "mysql"
@@ -57,6 +57,7 @@ module "rds" {
5757
| `parameter_group_parameters` | map(string) | Map of parameters to include in the database parameter group | {} |
5858
| `performance_insights` | [object](#performance_insights) | If the object is not null performance insights is turned on and configured with the parameter(s) in the object | null |
5959
| `tags` | map(string) | A map of AWS Tags to attach to each resource created | {} |
60+
| `ca_cert_identifier` | string | The identifier of the CA certificate for the DB instance. | null |
6061

6162
#### performance_insights
6263
* **`retention_period_days`** - The number of days to retain. Setting to null will default the resource default of 7 days

examples/simple/simple.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module "acs" {
1616
}
1717

1818
module "rds" {
19-
source = "github.com/byu-oit/terraform-aws-rds?ref=v3.0.0"
19+
source = "github.com/byu-oit/terraform-aws-rds?ref=v3.1.0"
2020
// source = "../.."
2121
identifier = "example"
2222
engine = "mysql"

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ resource "aws_db_instance" "database" {
7575
maintenance_window = var.maintenance_window
7676
multi_az = var.multi_az
7777
iam_database_authentication_enabled = var.iam_database_authentication_enabled
78+
ca_cert_identifier = var.ca_cert_identifier
7879

7980
db_subnet_group_name = var.subnet_group_name
8081
vpc_security_group_ids = concat(var.security_group_ids, [aws_security_group.db_security_group.id])

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,10 @@ variable "performance_insights" {
138138
})
139139
description = "Performance Insights Configuration"
140140
default = null
141+
}
142+
143+
variable "ca_cert_identifier" {
144+
type = string
145+
description = "The identifier of the CA certificate for the DB instance."
146+
default = null
141147
}

0 commit comments

Comments
 (0)