Skip to content

Commit

Permalink
Merge pull request #52 from ministryofjustice/update-readme-example
Browse files Browse the repository at this point in the history
Update readme and example
  • Loading branch information
vijay-veeranki authored Mar 13, 2020
2 parents 2a06f1c + a2b7926 commit 19dc44a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[![Releases](https://img.shields.io/github/release/ministryofjustice/cloud-platform-terraform-rds-instance/all.svg?style=flat-square)](https://github.com/ministryofjustice/cloud-platform-terraform-rds-instance/releases)

# IMP NOTE: Updating to module version 5.3, existing database password will be rotated.
# Make sure you restart your pods which use this RDS secret to avoid any down time.

This terraform module will create an RDS instance and all required AWS resources. A KMS key is also created in order to enable encryption.

The RDS instance that is created uses a randomly generated name to avoid any conflicts. The default database created in the instance uses the same random identifier but can be overriden by the user.
Expand All @@ -14,6 +17,7 @@ When upgrading the major version of an engine, `allow_major_version_upgrade` mus

Some engines can't apply some parameters without a reboot(ex postgres9.x cant apply force_ssl immediate), and you will need to specify "pending-reboot" here.


## Usage

See [this example](example/rds.tf)
Expand Down
6 changes: 5 additions & 1 deletion example/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ variable "cluster_state_bucket" {
* releases page of this repository.
*
*/

# IMP NOTE: Updating to module version 5.3, existing database password will be rotated.
# Make sure you restart your pods which use this RDS secret to avoid any down time.

module "example_team_rds" {
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=5.2"
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=5.3"
cluster_name = var.cluster_name
cluster_state_bucket = var.cluster_state_bucket
team_name = "example-repo"
Expand Down

0 comments on commit 19dc44a

Please sign in to comment.