-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenSearch_Neural_Search.yaml
55 lines (52 loc) · 1.71 KB
/
OpenSearch_Neural_Search.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description: This template will deploy OpenSearch domain
Resources:
# -----------------
# OpenSearch
# -----------------
OpenSearchDomain:
Type: AWS::OpenSearchService::Domain
Properties:
DomainName: neural-search-domain
EngineVersion: 'OpenSearch_2.7'
# Development configuration
ClusterConfig:
DedicatedMasterEnabled: false
InstanceCount: '1'
ZoneAwarenessEnabled: false
InstanceType: 'r5.2xlarge.search'
EBSOptions:
EBSEnabled: true
VolumeSize: '100'
VolumeType: 'gp3'
# Node to node encrpytion must be enabled to use the advanced security options
NodeToNodeEncryptionOptions:
Enabled: true
# Encryption at rest must be ebabled to use the advanced security options
EncryptionAtRestOptions:
Enabled: true
# HTTPS must be required to use the advanced security options
DomainEndpointOptions:
EnforceHTTPS: true
# Create a master user with a pre-defined username and password
AdvancedSecurityOptions:
Enabled: true
InternalUserDatabaseEnabled: true
MasterUserOptions:
MasterUserName: 'OSMasterUser'
MasterUserPassword: 'AwS#OpenSearch1'
# Set an access policy open to any AWS resource
AccessPolicies:
Version: 2012-10-17
Statement:
Effect: 'Allow'
Principal:
AWS: '*'
Action: 'es:*'
Resource: '*'
Outputs:
UserName:
Description: 'OpenSearch Dashboard Login UserName'
Value: 'OSMasterUser'
Password:
Description: 'OpenSearch Dashboard Login Password'
Value: 'AwS#OpenSearch1'