-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ministryofjustice/feature/default-region-…
…eu-west-2 Feature/default region eu west 2
- Loading branch information
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ The module also deploys the instance in Multi-AZ. | |
|
||
The outputs of this module should allow a user to connect to the database instance. | ||
|
||
|
||
**IMPORTANT NOTE: The latest module (4.0) does not support Live-0 deployment. Be sure to use the previous one (3.1) is you need to deploy to Live-0.** | ||
|
||
## Usage | ||
|
||
```hcl | ||
|
@@ -26,6 +29,7 @@ module "example_team_rds" { | |
is-production = "false" | ||
environment-name = "development" | ||
infrastructure-support = "[email protected]" | ||
aws_region = "eu-west-2" | ||
} | ||
``` | ||
|
@@ -45,6 +49,8 @@ module "example_team_rds" { | |
| snapshot_identifier | Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console. | string | | no | | ||
| cluster_name | The name of the cluster (eg.: cloud-platform-live-0) | string | - | yes | | ||
| cluster_state_bucket | The name of the S3 bucket holding the terraform state for the cluster | string | - | yes | | ||
| aws_region | region into which the resource will be created | string | eu-west-2 | no | ||
|
||
|
||
### Tags | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,7 @@ variable "cluster_state_bucket" {} | |
* | ||
*/ | ||
module "example_team_rds" { | ||
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=3.1" | ||
|
||
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=4.0" | ||
cluster_name = "${var.cluster_name}" | ||
cluster_state_bucket = "${var.cluster_state_bucket}" | ||
team_name = "example-repo" | ||
|
@@ -33,6 +32,7 @@ module "example_team_rds" { | |
is-production = "false" | ||
environment-name = "development" | ||
infrastructure-support = "[email protected]" | ||
aws_region = "eu-west-2" | ||
} | ||
|
||
resource "kubernetes_secret" "example_team_rds" { | ||
|
@@ -46,6 +46,6 @@ resource "kubernetes_secret" "example_team_rds" { | |
database_name = "${module.example_team_rds.database_name}" | ||
database_username = "${module.example_team_rds.database_username}" | ||
database_password = "${module.example_team_rds.database_password}" | ||
rds_instance_address = "${module.example_team_rds.rds_instance_address}" | ||
rds_instance_address = "${module.example_team_rds.rds_instance_address}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters