Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features for Elasticsearch image: S3 repository plugin and configure_s3.sh #140

Merged
merged 5 commits into from
Mar 27, 2019

Conversation

Phandora
Copy link
Contributor

@Phandora Phandora commented Mar 26, 2019

Hi team!

This PR adds S3 repository plugin and configure_s3.sh to Elasticsearch image. This features allow us to create a S3 repository on AWS to perform backup operations.

The plugin provides a S3 repository type. The repository defaults to using ECS IAM Role or EC2 IAM Role credentials for authentication, but we recommend to add the necessary policy to write on the S3 repository into the instance where Elasticsearch is hosted.

The configure_s3.sh script is launched by load_settings.sh. By default, the environment variable ENABLE_CONFIGURE_S3 is set to false, so it will not create any repository. To successfully create a S3 repository some environment variables are needed:

  • ENABLE_CONFIGURE_S3: true
  • ELASTICSEARCH_IP: elasticsearch
  • ELASTICSEARCH_PORT: 9200
  • S3_BUCKET_NAME: your_bucket_name
  • S3_PATH: path_for_bucket
  • S3_REPOSITORY_NAME: your_s3_repository_name

Optionally, S3_ELASTIC_MAJOR can be set to add the specified version to the path bucket. By default, current Elasticsearch version is checked and added at the end of the path and the repository name.

Best regards,

Mayte Ariza

elasticsearch/config/configure_s3.sh Outdated Show resolved Hide resolved
elasticsearch/config/configure_s3.sh Show resolved Hide resolved
elasticsearch/config/configure_s3.sh Show resolved Hide resolved
elasticsearch/config/load_settings.sh Show resolved Hide resolved
Copy link
Contributor

@manuasir manuasir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, write a comment about this function.

@manuasir manuasir merged commit 92b2814 into 3.8.2_6.5.4 Mar 27, 2019
@manuasir manuasir deleted the 3.8.2_6.5.4-s3_repository branch March 27, 2019 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants