-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOpenSearch_kNN_Vector_Search.yaml
73 lines (69 loc) · 2.18 KB
/
OpenSearch_kNN_Vector_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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Description: This template will deploy OpenSearch domain and Cloud9 with GitHub repo
Resources:
# -----------------
# OpenSearch
# -----------------
OpenSearchDomain:
Type: AWS::OpenSearchService::Domain
Properties:
DomainName: knn-search-domain
EngineVersion: 'OpenSearch_2.7'
# Development configuration
ClusterConfig:
DedicatedMasterEnabled: false
InstanceCount: '1'
ZoneAwarenessEnabled: false
InstanceType: 'r6g.large.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: '*'
# -----------------
# Cloud9
# -----------------
Cloud9:
Type: AWS::Cloud9::EnvironmentEC2
Properties:
Name: 'kNN-search-cloud9'
Description: 'Cloud9 development enviorment'
ImageId: 'amazonlinux-2-x86_64'
InstanceType: 't2.large'
AutomaticStopTimeMinutes: '30'
Repositories: [
{
"PathComponent" : '/OpenSearch_kNN_Vector_Search',
"RepositoryUrl" : 'https://github.com/ev2900/OpenSearch_kNN_Vector_Search.git'
}
]
Outputs:
UserName:
Description: 'OpenSearch Dashboard Login UserName'
Value: 'OSMasterUser'
Password:
Description: 'OpenSearch Dashboard Login Password'
Value: 'AwS#OpenSearch1'