Skip to content

Commit 80cf849

Browse files
[PRM-457] Ignore AMQ instance_type changes (#144)
1 parent 05449a6 commit 80cf849

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

terraform/modules/deductions-private/mq.tf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ resource "aws_mq_broker" "deductor_mq_broker" {
3737
console_access = false
3838
}
3939
lifecycle {
40-
ignore_changes = [engine_version]
40+
ignore_changes = [engine_version, host_instance_type]
4141
}
4242

4343
tags = {
@@ -172,6 +172,17 @@ resource "aws_security_group_rule" "vpn_to_mq_through_amqp" {
172172
source_security_group_id = aws_security_group.vpn.id
173173
}
174174

175+
resource "aws_security_group_rule" "vpn_to_mq_web_console" {
176+
count = var.grant_access_to_queues_through_vpn ? 1 : 0
177+
type = "ingress"
178+
protocol = "tcp"
179+
from_port = "8162"
180+
to_port = "8162"
181+
description = "Allow traffic from VPN to MQ Web Console"
182+
security_group_id = aws_security_group.vpn_to_mq.id
183+
source_security_group_id = aws_security_group.vpn.id
184+
}
185+
175186
resource "aws_security_group" "gocd_to_mq" {
176187
name = "${var.environment}-gocd-to-mq"
177188
description = "controls access from gocd to AMQ"

terraform/modules/deductions-private/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ variable "engine_version" {
8989

9090
variable "host_instance_type" {
9191
type = string
92-
default = "mq.t2.micro"
93-
description = "The broker's instance type. e.g. mq.t2.micro or mq.m4.large"
92+
default = "mq.t3.micro"
93+
description = "The broker's instance type. e.g. mq.t3.micro or mq.m5.large"
9494
}
9595

9696
variable "general_log" {

terraform/terraform.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deployment_mode = "ACTIVE_STANDBY_MULTI_AZ"
1010
mq_deployment_mode = "SINGLE_INSTANCE"
1111
engine_type = "ActiveMQ"
1212
engine_version = "5.18.4"
13-
host_instance_type = "mq.t2.micro"
13+
host_instance_type = "mq.t3.micro"
1414
auto_minor_version_upgrade = "true"
1515
apply_immediately = "false"
1616
general_log = "true"

terraform/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ variable "engine_version" {
107107

108108
variable "host_instance_type" {
109109
type = string
110-
default = "mq.t2.micro"
111-
description = "The broker's instance type. e.g. mq.t2.micro or mq.m4.large"
110+
default = "mq.t3.micro"
111+
description = "The broker's instance type. e.g. mq.t3.micro or mq.m5.large"
112112
}
113113

114114
variable "general_log" {

0 commit comments

Comments
 (0)