Skip to content

This Repo Contains Terraform Code for the AWS OpenSearch Cluster

Notifications You must be signed in to change notification settings

dharmendrakariya/opensearch-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensearch-terraform

  • Please configure the aws cli using aws configure

  • Please change the region in provider accordingly

  • Please chnage the subnet id in main.tf

Apply the below commands

terraform init

terraform validate

terraform apply

Once the cluster is up and green, to test it you need to create ec2 instance in the same vpc and subnet.

  • After creating the ec2, apply the below command to test the opensearch cluster.

ssh -i opensearch.pem [email protected] -N -L 9200:vpc-dkes-y5tqz5op74qluchzfzrqkdib5e.ap-south-1.es.amazonaws.com:443

  • Note:

where opensearch.pem is my ssh key

where [email protected] is my instance domain

where vpc-dkes-y5tqz5op74qluchzfzrqkdib5e.ap-south-1.es.amazonaws.com is my vpc endpoint

For the security group, specify two inbound rules:

add 22 and 443 rules

About

This Repo Contains Terraform Code for the AWS OpenSearch Cluster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages