From 4fcc0fb6d7cecc3291446787223be3d19690759d Mon Sep 17 00:00:00 2001 From: Arunsai14 Date: Mon, 16 Dec 2024 15:45:20 +0530 Subject: [PATCH] update parameter name --- main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index 23251c2..8e2462a 100644 --- a/main.tf +++ b/main.tf @@ -2,7 +2,7 @@ module "arc_security_group" { source = "git::git@github.com:sourcefuse/terraform-aws-arc-security-group.git?ref=0.0.1" - name = "${var.namespace}-${var.environment}-broker-mq-sg" + name = "${var.namespace}-${var.environment}-${var.name}-broker-mq-sg" vpc_id = var.vpc_id ingress_rules = var.security_group_data.ingress_rules egress_rules = var.security_group_data.egress_rules @@ -22,27 +22,27 @@ resource "random_password" "mq_broker" { ######### Store the generated password in ssm ######### resource "aws_ssm_parameter" "user_password" { - name = "/${var.namespace}/${var.environment}/mq/broker/user_password" + name = "/${var.namespace}/${var.environment}/${var.name}/mq/broker/user_password" type = "SecureString" value = random_password.mq_broker.result } resource "aws_ssm_parameter" "replication_user_password" { count = var.broker_type == "ActiveMQ" ? 1 : 0 - name = "/${var.namespace}/${var.environment}/mq/broker/replication_user_password" + name = "/${var.namespace}/${var.environment}/${var.name}/mq/broker/replication_user_password" type = "SecureString" value = random_password.mq_broker.result } resource "aws_ssm_parameter" "user_name" { - name = "/${var.namespace}/${var.environment}/mq/broker/user_name" + name = "/${var.namespace}/${var.environment}/${var.name}/mq/broker/user_name" type = "SecureString" value = var.users.username } resource "aws_ssm_parameter" "replication_user" { count = var.broker_type == "ActiveMQ" ? 1 : 0 - name = "/${var.namespace}/${var.environment}/mq/broker/replication_user_name" + name = "/${var.namespace}/${var.environment}/${var.name}/mq/broker/replication_user_name" type = "SecureString" value = var.users.username }