-
-
Save thehelvetian/6c4ccb84af921e66af11230eb338c220 to your computer and use it in GitHub Desktop.
CloudFormation stack for an ElasticSearch domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Elasticsearch: | |
Type: AWS::Elasticsearch::Domain | |
Properties: | |
DomainName: !Sub ${AWS::StackName}-es | |
ElasticsearchVersion: 5.5 | |
ElasticsearchClusterConfig: | |
InstanceType: t2.small.elasticsearch | |
ZoneAwarenessEnabled: false | |
InstanceCount: 1 | |
EBSOptions: | |
EBSEnabled: true | |
VolumeSize: 10 | |
AccessPolicies: | |
Version: 2012-10-17 | |
Statement: | |
- Effect: Allow | |
Principal: | |
AWS: "*" | |
Action: | |
- es:ESHttpDelete | |
- es:ESHttpGet | |
- es:ESHttpHead | |
- es:ESHttpPost | |
- es:ESHttpPut | |
Resource: !Sub arn:aws:es:${AWS::Region}:${AWS::AccountId}:domain/${AWS::StackName}-es/* | |
Condition: | |
IpAddress: | |
aws:SourceIp: | |
- !GetAtt VPC.Outputs.NatGateway1EIP | |
- !GetAtt VPC.Outputs.NatGateway2EIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment