{"id":19310972,"url":"https://github.com/a0s/terraform-elastic-cloud-on-kubernetes","last_synced_at":"2026-02-28T07:31:10.487Z","repository":{"id":180533127,"uuid":"665287826","full_name":"a0s/terraform-elastic-cloud-on-kubernetes","owner":"a0s","description":"Direct conversion of the ECK project's kubectl manifests to Terraform using tfk8s.","archived":false,"fork":false,"pushed_at":"2023-07-11T22:14:07.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:37:53.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a0s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-11T21:46:55.000Z","updated_at":"2023-07-11T22:12:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"4699b27d-a26b-469e-8a8a-db3a7eb85eba","html_url":"https://github.com/a0s/terraform-elastic-cloud-on-kubernetes","commit_stats":null,"previous_names":["a0s/terraform-elastic-cloud-on-kubernetes"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/a0s/terraform-elastic-cloud-on-kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fterraform-elastic-cloud-on-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fterraform-elastic-cloud-on-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fterraform-elastic-cloud-on-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fterraform-elastic-cloud-on-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a0s","download_url":"https://codeload.github.com/a0s/terraform-elastic-cloud-on-kubernetes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fterraform-elastic-cloud-on-kubernetes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29927559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"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":[],"created_at":"2024-11-10T00:27:09.664Z","updated_at":"2026-02-28T07:31:10.470Z","avatar_url":"https://github.com/a0s.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elastic Cloud on Kubernetes (ECK) for Terraform\n\nThis is a direct conversion of the ECK project's kubectl manifests to Terraform using tfk8s.\n\nOriginal files:\n\n* https://download.elastic.co/downloads/eck/2.8.0/crds.yaml\n* https://download.elastic.co/downloads/eck/2.8.0/operator.yaml\n\n## Modifications from original\n\n* Namespace name is extracted as variable `namespace` for potential adjustments.\n\n* Removed creation of namespace inside. It should be created outside of this module. Namespace should have label `name` with their name.  \n\n## Using with CDK for Terraform (CDKTF) \n\nAdd path to module into cdktf.json\n\n```json\n{\n  \"terraformModules\": [\n    {\n      \"name\": \"elastic-cloud-on-kubernetes\",\n      \"source\": \"../terraform-elastic-cloud-on-kubernetes\"\n    }\n  ]\n}\n```\n\nRun `cdktf get` to generate content in `.gen`.\n\nYour stack can look like:\n\n```typescript\nimport {\n  ElasticCloudOnKubernetes,\n  ElasticCloudOnKubernetesConfig\n} from \".gen/modules/elastic-cloud-on-kubernetes\"\n\nconst eck = new ElasticCloudOnKubernetes(this, \"eck\", \u003cElasticCloudOnKubernetesConfig\u003e{\n  providers: [config.k8sProvider],\n  namespace: config.namespace\n})\n\nnew Manifest(this, \"elasticsearch\", \u003cManifestConfig\u003e{\n  provider: config.k8sProvider,\n  dependsOn: [eck],\n  manifest: {\n    apiVersion: \"elasticsearch.k8s.elastic.co/v1\",\n    kind: \"Elasticsearch\",\n    metadata: {\n      namespace: config.namespace,\n      name: \"elasticsearch\",\n    },\n    spec: {\n      version: \"8.8.2\",\n      nodeSets: [\n        {\n          name: \"default\",\n          count: \"1\",\n          config: {\n            \"node.store.allow_mmap\": \"false\"\n          }\n        }\n      ]\n    }\n  }\n})\n```\n\n## Links\n\n* https://github.com/elastic/cloud-on-k8s\n* https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fterraform-elastic-cloud-on-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa0s%2Fterraform-elastic-cloud-on-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fterraform-elastic-cloud-on-kubernetes/lists"}