Skip to content

Commit

Permalink
Merge pull request #44 from ministryofjustice/ca_cert_identifier
Browse files Browse the repository at this point in the history
Ca cert identifier rds-ca-2019
  • Loading branch information
vijay-veeranki authored Dec 16, 2019
2 parents 461b010 + 7698b19 commit 18f2e37
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 34 deletions.
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ See [this example](example/rds.tf)
| providers | provider (and region) creating the resources | arrays of string | default provider | no |
| rds_family | rds configuration version | string | `postgres10` | no |
| apply_method | Indicates when to apply parameter updates | string | `immediate` | no |
| ca_cert_identifier | Specifies the identifier of the CA certificate for the DB instance | string | `rds-ca-2019` | no |


### Tags
Expand Down
2 changes: 1 addition & 1 deletion example/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "cluster_state_bucket" {
*
*/
module "example_team_rds" {
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=5.0"
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=5.1"
cluster_name = var.cluster_name
cluster_state_bucket = var.cluster_state_bucket
team_name = "example-repo"
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ resource "aws_db_instance" "rds" {
snapshot_identifier = var.snapshot_identifier
allow_major_version_upgrade = var.allow_major_version_upgrade
parameter_group_name = aws_db_parameter_group.custom_parameters.name
ca_cert_identifier = var.ca_cert_identifier

tags = {
business-unit = var.business-unit
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ variable "rds_family" {
variable "apply_method" {
description = "Indicates when to apply parameter updates, some engines can't apply some parameters without a reboot, so set to pending-reboot"
default = "immediate"
}

variable "ca_cert_identifier" {
description = "Specifies the identifier of the CA certificate for the DB instance"
default = "rds-ca-2019"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

terraform {
required_version = ">= 0.12"
required_version = "0.12.17"
}

0 comments on commit 18f2e37

Please sign in to comment.