{"id":13505752,"url":"https://github.com/elastic/terraform-provider-elasticstack","last_synced_at":"2026-05-14T02:01:27.610Z","repository":{"id":37929353,"uuid":"421774239","full_name":"elastic/terraform-provider-elasticstack","owner":"elastic","description":"Terraform provider for Elastic Stack","archived":false,"fork":false,"pushed_at":"2026-05-11T08:06:10.000Z","size":34519,"stargazers_count":206,"open_issues_count":153,"forks_count":136,"subscribers_count":217,"default_branch":"main","last_synced_at":"2026-05-11T08:28:53.027Z","etag":null,"topics":["elasticsearch","elasticstack","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/elastic/elasticstack/latest/docs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elastic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2021-10-27T10:31:30.000Z","updated_at":"2026-05-11T06:47:12.000Z","dependencies_parsed_at":"2026-03-23T17:03:19.509Z","dependency_job_id":"e41c2a41-717c-40de-b2ab-29ae5bd75803","html_url":"https://github.com/elastic/terraform-provider-elasticstack","commit_stats":{"total_commits":599,"total_committers":69,"mean_commits":8.681159420289855,"dds":0.7529215358931552,"last_synced_commit":"b6434baddcfd07bec06653f380d4795e36bf99df"},"previous_names":[],"tags_count":120,"template":false,"template_full_name":null,"purl":"pkg:github/elastic/terraform-provider-elasticstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fterraform-provider-elasticstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fterraform-provider-elasticstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fterraform-provider-elasticstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fterraform-provider-elasticstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elastic","download_url":"https://codeload.github.com/elastic/terraform-provider-elasticstack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elastic%2Fterraform-provider-elasticstack/sbom","scorecard":{"id":354843,"data":{"date":"2025-08-11","repo":{"name":"github.com/elastic/terraform-provider-elasticstack","commit":"d792c48ed064881868110c53801e2ace42c2a088"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7.3,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":5,"reason":"Found 13/25 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/copilot-setup-steps.yml:23","Warn: no topLevel permission defined: .github/workflows/copilot-setup-steps.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:13","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_component_template/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_data_stream/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_data_stream_lifecycle/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_enrich_policy/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_index/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_index_lifecycle/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_index_template/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_ingest_pipeline/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_logstash_pipeline/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_script/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_security_role/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_security_role_mapping/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_security_user/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_snapshot_lifecycle/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_snapshot_repository/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_transform/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_elasticsearch_watch/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_fleet_agent_policy/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_fleet_integration_policy/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_fleet_output/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_fleet_server_host/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_action_connector/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_alerting_rule/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_data_view/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_security_role/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_slo/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_space/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_synthetics_monitor/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_synthetics_parameter/import.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: examples/resources/elasticstack_kibana_synthetics_private_location/import.sh:0","Info:   8 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/elastic/.github/SECURITY.md:1","Info: Found linked content: github.com/elastic/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/elastic/.github/SECURITY.md:1","Info: Found text in security policy: github.com/elastic/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":8,"reason":"5 out of the last 5 releases have a total of 5 signed artifacts.","details":["Info: signed release artifact: terraform-provider-elasticstack_0.11.17_SHA256SUMS.sig: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.17","Info: signed release artifact: terraform-provider-elasticstack_0.11.16_SHA256SUMS.sig: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.16","Info: signed release artifact: terraform-provider-elasticstack_0.11.15_SHA256SUMS.sig: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.15","Info: signed release artifact: terraform-provider-elasticstack_0.11.14_SHA256SUMS.sig: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.14","Info: signed release artifact: terraform-provider-elasticstack_0.11.13_SHA256SUMS.sig: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.13","Warn: release artifact v0.11.17 does not have provenance: https://api.github.com/repos/elastic/terraform-provider-elasticstack/releases/233981402","Warn: release artifact v0.11.16 does not have provenance: https://api.github.com/repos/elastic/terraform-provider-elasticstack/releases/230765984","Warn: release artifact v0.11.15 does not have provenance: https://api.github.com/repos/elastic/terraform-provider-elasticstack/releases/214194955","Warn: release artifact v0.11.14 does not have provenance: https://api.github.com/repos/elastic/terraform-provider-elasticstack/releases/206237028","Warn: release artifact v0.11.13 does not have provenance: https://api.github.com/repos/elastic/terraform-provider-elasticstack/releases/193959873"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2025-3829","Warn: Project is vulnerable to: GO-2025-3770"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":4,"reason":"SAST tool is not run on all commits -- score normalized to 4","details":["Warn: 14 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T09:16:38.364Z","repository_id":37929353,"created_at":"2025-08-18T09:16:38.364Z","updated_at":"2025-08-18T09:16:38.364Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33007321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","elasticstack","terraform-provider"],"created_at":"2024-08-01T00:01:12.930Z","updated_at":"2026-05-14T02:01:27.581Z","avatar_url":"https://github.com/elastic.png","language":"Go","funding_links":[],"categories":["Providers"],"sub_categories":["Vendor supported providers"],"readme":"# Terraform Provider Elastic Stack\n\n[![Acceptance Status](https://github.com/elastic/terraform-provider-elasticstack/actions/workflows/test.yml/badge.svg)](https://github.com/elastic/terraform-provider-elasticstack/actions/workflows/test.yml)\n\n## Use of the provider\nThe Elastic Stack provider allows you to manage and configure the Elastic stack (Elasticsearch, Kibana, etc) as code using `terraform`.\n\n\n## Getting started\n\n__The provider supports Elastic Stack versions 8.0+__\n\nIt is recommended to setup at least minimum security, https://www.elastic.co/guide/en/elasticsearch/reference/current/security-minimal-setup.html\nin order to interact with the Elasticsearch and be able to use the provider's full capabilities.\n\n\nConfiguring [required providers](https://www.terraform.io/docs/language/providers/requirements.html#requiring-providers):\n\n```terraform\nterraform {\n  required_version = \"\u003e= 1.0.0\"\n  required_providers {\n    elasticstack = {\n      source  = \"elastic/elasticstack\"\n      version = \"~\u003e0.9\"\n    }\n  }\n}\n```\n\n\n### Authentication\n\nThe Elasticstack provider offers few different ways of providing credentials for authentication.\nThe following methods are supported:\n\n* Static credentials\n* Environment variables\n\n\n#### Static credentials\n\nDefault static credentials can be provided by adding the `username`, `password` and `endpoints` in `elasticsearch` block:\n\n```terraform\nprovider \"elasticstack\" {\n  elasticsearch {\n    username  = \"elastic\"\n    password  = \"changeme\"\n    endpoints = [\"http://localhost:9200\"]\n  }\n}\n```\n\nAlternatively an `api_key` can be specified instead of `username` and `password`:\n\n```terraform\nprovider \"elasticstack\" {\n  elasticsearch {\n    api_key  = \"base64encodedapikeyhere==\"\n    endpoints = [\"http://localhost:9200\"]\n  }\n}\n```\n\n#### Environment Variables\n\nYou can provide your credentials for the default connection via the `ELASTICSEARCH_USERNAME`, `ELASTICSEARCH_PASSWORD` and comma-separated list `ELASTICSEARCH_ENDPOINTS`,\nenvironment variables, representing your user, password and Elasticsearch API endpoints respectively.\n\nAlternatively the `ELASTICSEARCH_API_KEY` variable can be specified instead of `ELASTICSEARCH_USERNAME` and `ELASTICSEARCH_PASSWORD`.\n\n```terraform\nprovider \"elasticstack\" {\n  elasticsearch {}\n}\n```\n\n## Developing the Provider\n\nSee [contributing.md](dev-docs/high-level/contributing.md)\n\n## Support\n\nWe welcome questions on how to use the Elastic providers. The providers are supported by Elastic. General questions, bugs and product issues should be raised in their corresponding repositories, either for the Elastic Stack provider, or the Elastic Cloud one. Questions can also be directed to the discuss forum. https://discuss.elastic.co/c/orchestration.\n\nWe will not, however, fix bugs upon customer demand, as we have to prioritize all pending bugs and features, as part of the product's backlog and release cycles.\n\n### Support tickets severity\n\nSupport tickets related to the Terraform provider can be opened with Elastic, however since the provider is just a client of the underlying product API's, we will not be able to treat provider related support requests as a Severity-1 (Immedediate time frame). Urgent, production-related Terraform issues can be resolved via direct interaction with the underlying project API or UI. We will ask customers to resort to these methods to resolve downtime or urgent issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastic%2Fterraform-provider-elasticstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felastic%2Fterraform-provider-elasticstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felastic%2Fterraform-provider-elasticstack/lists"}