Skip to content

Commit 4d66405

Browse files
committed
enforce https for opensearch cluster
1 parent 6b4b49a commit 4d66405

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/cfn/templates/opensearch.template

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ Resources:
7373
InstanceCount: !If [ZoneAwarenessEnabled, 2, 1]
7474
InstanceType: !Ref InstanceType
7575
ZoneAwarenessEnabled: !If [ZoneAwarenessEnabled, true, false]
76-
ZoneAwarenessConfig: !If
76+
ZoneAwarenessConfig: !If
7777
- ZoneAwarenessEnabled
7878
- AvailabilityZoneCount: 2
7979
- !Ref AWS::NoValue
8080
DedicatedMasterEnabled: false
81+
DomainEndpointOptions:
82+
EnforceHTTPS: true
8183
EBSOptions:
8284
EBSEnabled: true
8385
VolumeType: gp2
@@ -115,7 +117,7 @@ Resources:
115117
VPCOptions:
116118
SubnetIds:
117119
- !Ref PrivateSubnet0
118-
- !If
120+
- !If
119121
- ZoneAwarenessEnabled
120122
- !Ref PrivateSubnet1
121123
- !Ref AWS::NoValue

0 commit comments

Comments
 (0)