Skip to content

Latest commit

 

History

History
49 lines (23 loc) · 942 Bytes

README.md

File metadata and controls

49 lines (23 loc) · 942 Bytes

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