Skip to content

Commit

Permalink
specify only two subnets for elasticsearch domain as AWS doesn't choo…
Browse files Browse the repository at this point in the history
…se first two by default now. (#88)
  • Loading branch information
rongwang0930 authored and kusid committed Nov 8, 2019
1 parent 0d3006f commit 15c5314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdl/src/main/cft/mdlElasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Resources:
AdvancedOptions:
rest.action.multi.allow_explicit_index: 'true'
VPCOptions:
SubnetIds: !Split [',', !Ref PrivateSubnetsParameterKey]
SubnetIds: [!Select [0, !Split [',', !Ref PrivateSubnetsParameterKey]], !Select [1, !Split [',', !Ref PrivateSubnetsParameterKey]]]
SecurityGroupIds: !Split [',', !Ref EsSecurityGroup]
ElasticSearchDomainParameter:
Type: 'AWS::SSM::Parameter'
Expand Down

0 comments on commit 15c5314

Please sign in to comment.