-
Notifications
You must be signed in to change notification settings - Fork 0
/
logstash_cloud9_s3.yaml
63 lines (61 loc) · 2.03 KB
/
logstash_cloud9_s3.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
Description: Create a publicly accessible OpenSearch domain + a Cloud9 to install and run LogStash on
Resources:
OpenSearchDomain:
Type: AWS::OpenSearchService::Domain
Properties:
DomainName: logstash-opensearch-domain
EngineVersion: 'OpenSearch_1.3'
# Development configuration
ClusterConfig:
DedicatedMasterEnabled: false
InstanceCount: '1'
ZoneAwarenessEnabled: false
InstanceType: 'r6g.large.search'
EBSOptions:
EBSEnabled: true
VolumeSize: '20'
VolumeType: 'gp2'
# 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:
Type: AWS::Cloud9::EnvironmentEC2
Properties:
Name: 'logstash-cloud9'
Description: 'Cloud9 development enviorment'
ImageId: 'amazonlinux-2-x86_64'
InstanceType: 't2.large'
AutomaticStopTimeMinutes: '30'
# Outputs for ease of use
Outputs:
OSDomainARN:
Description: OpenSearch domain ARN
Value: !GetAtt OpenSearchDomain.Arn
UserName:
Description: 'OpenSearch Dashboard Login UserName'
Value: 'OSMasterUser'
Password:
Description: 'OpenSearch Dashboard Login Password'
Value: 'AwS#OpenSearch1'