Skip to content

Commit

Permalink
saved db information in ssm
Browse files Browse the repository at this point in the history
  • Loading branch information
AgusPk committed Oct 12, 2023
1 parent a0d922e commit c203f25
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/rds/ssm.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
resource "aws_ssm_parameter" "db_instance_address" {
name = "/${var.name}/db_instance_address"
type = "StringList"
value = module.db.db_instance_address
}

resource "aws_ssm_parameter" "db_instance_name" {
name = "/${var.name}/db_instance_name"
type = "StringList"
value = module.db.db_instance_name
}

resource "aws_ssm_parameter" "db_instance_port" {
name = "/${var.name}/db_instance_port"
type = "StringList"
value = module.db.db_instance_port
}

resource "aws_ssm_parameter" "db_instance_master_user_secret_arn" {
name = "/${var.name}/db_instance_master_user_secret_arn"
type = "StringList"
value = module.db.db_instance_master_user_secret_arn
}

0 comments on commit c203f25

Please sign in to comment.