Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tahaderouiche/terraform

Terraform elastic installation scripts
https://github.com/tahaderouiche/terraform

cloud elasticsearch terraform

Last synced: 24 days ago
JSON representation

Terraform elastic installation scripts

Awesome Lists containing this project

README

        

# Terraform scripts for elastic ECE resources

This tree provides a basic installation scripts for an installation of [Elastic Cloud Enterprise](https://www.elastic.co/cloud/enterprise) on both aws and gcp. This will install an ECE setup with single machine for testing purposes.
For a production grade setup, you can use follow the documentation [steps](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing.html).

The aws setup is done assuming [MFA](https://aws.amazon.com/iam/details/mfa/) is enabled.

- - - -
# Usage

View a description of Makefile targets with help via the [self-documenting makefile](https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html).

$ make
apply Apply the terraform script
clean Clean all unecessary temp files
destroy Destroy current terraform setup
help Show this help.
init Initialise the terraform environment
install Apply the terraform script
plan Plan the setup
show Show current terraform setup
ssh Ssh to remote host created with terraform

# Detailed steps to launch ECE with terraform
1. Edit variables

Edit `terraform.tfvars` with the right values based on your required.

2. Initialize environment

After setting up the MFA , run `make init`.

3. Plan

To check what will be created and see if there is any issue, you can use `make plan`.

4. Provision machine

To launch the desired AWS machine , you can run `make apply`.

5. Install ECE

Installation is triggered using `make install`. After the installation is completed, it will generate a username and password to connect to the admin console UI.

6. Remove everything

After testing, you can delete the servers and clean everything using `make destroy` and `make clean`.