Skip to content

Commit

Permalink
Merge pull request #2 from sourcefuse/feature/rabbitmq-name-fix
Browse files Browse the repository at this point in the history
update parameter, sg  name
  • Loading branch information
Arunsai14 authored Dec 16, 2024
2 parents ea2d098 + 4fcc0fb commit 72badc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module "arc_security_group" {
source = "git::[email protected]: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
Expand All @@ -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
}
Expand Down

0 comments on commit 72badc2

Please sign in to comment.