Using select functions to pick out two subnets, since AmazonMQ can only accept two subnets.

This commit is contained in:
Lucius Bono 2018-10-16 08:49:22 -07:00
Родитель 8cf0dbf3ac
Коммит c70c8d8457
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -51,4 +51,6 @@
PubliclyAccessible: false
SecurityGroups:
- !Ref 'AmazonMQSecurityGroup'
SubnetIds: !Join [ ",", [ !Select [ 0, !Ref 'MQSubnetIds' ], !Select [ 1, !Ref 'MQSubnetIds' ] ] ]
SubnetIds:
- !Select [ 0, !Ref 'MQSubnetIds' ]
- !Select [ 1, !Ref 'MQSubnetIds' ]