8000 GitHub - abhishek3100/elastic-tf: Create Elasticsearch and Kibana in GCP Instance using Terraform
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abhishek3100/elastic-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch & Kibana Initiation using Terraform

This directory contains terraform script that can be used to create Elasticearch & Kibana alongside in an GCP instance [vm].

Specifications

By default [for modification do change tfvars files]

  • Ubuntu 20.04
  • 10GB Boot Disk
  • n1-standard-2 [2vCPU & 7.5GB Memory]

Setting Up Environment

Install terraform

https://learn.hashicorp.com/tutorials/terraform/install-cli
  • Gcloud should be configured
gcloud auth login
  • Or Use Service Account [ using Key file 😟 or Using Impersonation ✅ ]
export GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_JSON

gcloud config set auth/impersonate_service_account SA_EMAIL

Deployment

To initialize directory

terraform init

To do a plan

terraform plan -out plan.out

To apply

terraform apply plan.out

To destroy

terraform destroy

To deploy with tfvars

env=dev
terraform plan -var-file $env.tfvars -out plan.out
terraform apply -var-file $env.tfvars -out plan.out

Appendix

I've modified kibana.yml configuration to be accessible remotely. You can browse Kibana dashboard on http://ip-address:5601

Give VM to be fully available [start of elastic/kibana] for about 3-4 minutes.

About

Create Elasticsearch and Kibana in GCP Instance using Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0