Bladeren bron

Merge pull request #267 from mdr-engineering/hotfix/ftd_na_JiraNeedanRDSModuleUpdate

Jira was on a 2.x version of the module, and needs version 3.x
Frederick Damstra 3 jaren geleden
bovenliggende
commit
fe8ed3cdcf
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      base/jira/rds_jira/main.tf
  2. 2 2
      base/jira/rds_jira/outputs.tf

+ 1 - 1
base/jira/rds_jira/main.tf

@@ -16,7 +16,7 @@ output "ca_cert_identifier" {
 
 module "jira_db" {
   source = "terraform-aws-modules/rds/aws"
-  version = "~> v2.0"
+  version = "~> v3.0"
 
   identifier = var.identifier # this is the RDS identifier, not the DB name
   name = "jira" # the DB name

+ 2 - 2
base/jira/rds_jira/outputs.tf

@@ -7,7 +7,7 @@ output "vpc_id" {
 }
 
 output "subnet_group" {
-  value = module.jira_db.this_db_subnet_group_id
+  value = module.jira_db.db_subnet_group_id
 }
 
 output "security_group" {
@@ -31,5 +31,5 @@ output "kms_key" {
 }
 
 output "database_url" {
-  value = "jdbc:postgresql://${module.jira_db.this_db_instance_endpoint}:5432/${var.identifier}"
+  value = "jdbc:postgresql://${module.jira_db.db_instance_endpoint}:5432/${var.identifier}"
 }