Skip to content

Commit e43e02f

Browse files
Fixed ActiveMQ Private Lambda Java SAM Project
1 parent 87b3305 commit e43e02f

File tree

2 files changed

+884
-5
lines changed

2 files changed

+884
-5
lines changed

activemq-private-lambda-java-sam/ActiveMQAndClientEC2.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ Resources:
570570
ACTIVEMQ_BROKER_ARN=${activemq_broker_arn}
571571
ACTIVEMQ_BROKER_ENDPOINT_ONE=${activemq_broker_endpoint1}
572572
ACTIVEMQ_BROKER_ENDPOINT_TWO=${activemq_broker_endpoint2}
573-
ACTIVEMQ_BROKER_ENDPOINT="\"failover:(${activemq_broker_endpoint1},${activemq_broker_endpoint2})\""
573+
#ACTIVEMQ_BROKER_ENDPOINT="\"failover:(${activemq_broker_endpoint1},${activemq_broker_endpoint2})\""
574+
ACTIVEMQ_BROKER_ENDPOINT="\"failover:($ACTIVEMQ_BROKER_ENDPOINT_ONE,$ACTIVEMQ_BROKER_ENDPOINT_ONE)\""
574575
ACTIVEMQ_QUEUE_NAME=${activemq_queue_name}
575576
ACTIVEMQ_SECRET_ARN=${activemq_secret_arn}
576577
AWS_REGION=${aws_region}
@@ -584,8 +585,8 @@ Resources:
584585
585586
echo "export ACTIVEMQ_BROKER_ID=$ACTIVEMQ_BROKER_ID" >> /home/ec2-user/.bash_profile
586587
echo "export ACTIVEMQ_BROKER_ARN=$ACTIVEMQ_BROKER_ARN" >> /home/ec2-user/.bash_profile
587-
echo "export ACTIVEMQ_BROKER_ENDPOINT_ONE=$ACTIVEMQ_BROKER_ENDPOINT_ONE" >> /home/ec2-user/.bash_profile
588-
echo "export ACTIVEMQ_BROKER_ENDPOINT_TWO=$ACTIVEMQ_BROKER_ENDPOINT_TWO" >> /home/ec2-user/.bash_profile
588+
#echo "export ACTIVEMQ_BROKER_ENDPOINT_ONE=$ACTIVEMQ_BROKER_ENDPOINT_ONE" >> /home/ec2-user/.bash_profile
589+
#echo "export ACTIVEMQ_BROKER_ENDPOINT_TWO=$ACTIVEMQ_BROKER_ENDPOINT_TWO" >> /home/ec2-user/.bash_profile
589590
echo "export ACTIVEMQ_BROKER_ENDPOINT=$ACTIVEMQ_BROKER_ENDPOINT" >> /home/ec2-user/.bash_profile
590591
echo "export ACTIVEMQ_QUEUE_NAME=$ACTIVEMQ_QUEUE_NAME" >> /home/ec2-user/.bash_profile
591592
echo "export ACTIVEMQ_SECRET_ARN=$ACTIVEMQ_SECRET_ARN" >> /home/ec2-user/.bash_profile
@@ -646,8 +647,8 @@ Resources:
646647
cd /home/ec2-user/serverless-patterns/activemq-private-lambda-java-sam
647648
sudo chown ec2-user ./activemq_queue_browser.sh
648649
source /home/ec2-user/.bash_profile
649-
sed -i "s|ACTIVEMQ_BROKER_ENDPOINT_ONE|$ACTIVEMQ_BROKER_ENDPOINT_ONE|g" activemq_queue_browser.sh
650-
sed -i "s|ACTIVEMQ_BROKER_ENDPOINT_TWO|$ACTIVEMQ_BROKER_ENDPOINT_TWO|g" activemq_queue_browser.sh
650+
sed -i "s|ACTIVEMQ_BROKER_ENDPOINT_ONE|${activemq_broker_endpoint1}|g" activemq_queue_browser.sh
651+
sed -i "s|ACTIVEMQ_BROKER_ENDPOINT_TWO|${activemq_broker_endpoint2}|g" activemq_queue_browser.sh
651652
sed -i "s|ACTIVEMQ_BROKER_ADMIN_USER|$ACTIVEMQ_BROKER_ADMIN_USER|g" activemq_queue_browser.sh
652653
sed -i "s|ACTIVEMQ_BROKER_PASSWORD|$ACTIVEMQ_BROKER_PASSWORD|g" activemq_queue_browser.sh
653654
sed -i "s|ACTIVEMQ_QUEUE_NAME|$ACTIVEMQ_QUEUE_NAME|g" activemq_queue_browser.sh

0 commit comments

Comments
 (0)