File tree Expand file tree Collapse file tree
modules/deductions-private Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
175186resource "aws_security_group" "gocd_to_mq" {
176187 name = " ${ var . environment } -gocd-to-mq"
177188 description = " controls access from gocd to AMQ"
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ variable "engine_version" {
8989
9090variable "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
9696variable "general_log" {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ deployment_mode = "ACTIVE_STANDBY_MULTI_AZ"
1010mq_deployment_mode = " SINGLE_INSTANCE"
1111engine_type = " ActiveMQ"
1212engine_version = " 5.18.4"
13- host_instance_type = " mq.t2 .micro"
13+ host_instance_type = " mq.t3 .micro"
1414auto_minor_version_upgrade = " true"
1515apply_immediately = " false"
1616general_log = " true"
Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ variable "engine_version" {
107107
108108variable "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
114114variable "general_log" {
You can’t perform that action at this time.
0 commit comments