{"id":28566996,"url":"https://github.com/altinity/terraform-altinitycloud-connect","last_synced_at":"2025-10-09T17:33:58.215Z","repository":{"id":103608777,"uuid":"531345246","full_name":"Altinity/terraform-altinitycloud-connect","owner":"Altinity","description":"Terraform module for connecting Kubernetes clusters to Altinity.Cloud","archived":false,"fork":false,"pushed_at":"2025-03-05T02:46:44.000Z","size":69,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T15:51:18.624Z","etag":null,"topics":["infra"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/Altinity/connect/altinitycloud","language":"HCL","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/Altinity.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-01T03:14:54.000Z","updated_at":"2025-03-05T02:46:48.000Z","dependencies_parsed_at":"2023-11-18T00:57:29.247Z","dependency_job_id":"b2a6ccd3-2132-41f9-8b85-61a05aebb827","html_url":"https://github.com/Altinity/terraform-altinitycloud-connect","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Altinity/terraform-altinitycloud-connect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinity%2Fterraform-altinitycloud-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinity%2Fterraform-altinitycloud-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinity%2Fterraform-altinitycloud-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinity%2Fterraform-altinitycloud-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altinity","download_url":"https://codeload.github.com/Altinity/terraform-altinitycloud-connect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinity%2Fterraform-altinitycloud-connect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001866,"owners_count":26083197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["infra"],"created_at":"2025-06-10T15:40:21.443Z","updated_at":"2025-10-09T17:33:58.211Z","avatar_url":"https://github.com/Altinity.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Altinity.Cloud Kubernetes Connect Module\n\n\u003cdiv align=\"right\"\u003e\n  \u003cimg src=\"https://altinity.com/wp-content/uploads/2022/05/logo_horizontal_blue_white.svg\" alt=\"Altinity\" width=\"120\"\u003e\n\u003c/div\u003e\n\n[![Terraform Registry](https://img.shields.io/badge/terraform-registry-blue.svg)](https://registry.terraform.io/modules/altinity/connect/altinitycloud/latest)\n[![Latest Version](https://img.shields.io/badge/dynamic/json?label=version\u0026query=$.version\u0026url=https%3A//registry.terraform.io/v1/modules/altinity/connect/altinitycloud)](https://registry.terraform.io/modules/altinity/connect/altinitycloud/latest)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA Terraform module that sets up the necessary Kubernetes infrastructure to connect your Kubernetes clusters to [Altinity.Cloud](https://altinity.cloud/anywhere). This module deploys the cloud-connect service as a Kubernetes deployment, along with the required namespaces, secrets, and RBAC configurations.\n\nIf you're looking for a way to manage ClickHouse clusters via Terraform, see [terraform-provider-altinitycloud](https://github.com/altinity/terraform-provider-altinitycloud).\n\n## Prerequisites\n\nBefore using this module, ensure you have:\n\n1. **Kubernetes cluster** with kubectl access configured\n2. **Terraform** \u003e= 0.13\n3. **Altinity.Cloud account** and access to the cloud-connect certificate\n4. **Kubernetes provider** \u003e= 2.0\n\n## Usage\n\n### Basic Setup\n\n```terraform\nprovider \"kubernetes\" {\n  # https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs\n}\n\nmodule \"altinitycloud_connect\" {\n  source  = \"altinity/connect/altinitycloud\"\n  version = \"~\u003e 0.133.0\"\n\n  # Certificate from `altinitycloud-connect login`\n  # See https://github.com/altinity/altinitycloud-connect for details\n  pem = file(\"cloud-connect.pem\")\n}\n```\n\n## Examples\n\n### Node Affinity and Tolerations\n\n```terraform\nmodule \"altinitycloud_connect\" {\n  source  = \"altinity/connect/altinitycloud\"\n  version = \"~\u003e 0.133.0\"\n\n  pem = file(\"cloud-connect.pem\")\n\n  # Schedule on specific nodes\n  node_selector = {\n    \"kubernetes.io/os\" = \"linux\"\n    \"node-role\"        = \"altinity\"\n  }\n\n  # Custom tolerations\n  tolerations = [\n    {\n      key      = \"dedicated\"\n      operator = \"Equal\"\n      value    = \"altinity\"\n      effect   = \"NoSchedule\"\n    }\n  ]\n}\n```\n\n## Configuration\n\n### Required Variables\n\n| Name | Description | Type |\n|------|-------------|------|\n| `pem` | Contents of cloud-connect.pem certificate (if not using external secret) | `string` |\n\n### Optional Variables\n\n| Name | Description | Type | Default |\n|------|-------------|------|---------|\n| `use_external_secret` | Use externally managed secret instead of creating one | `bool` | `false` |\n| `url` | Altinity.Cloud connection URL | `string` | `\"https://anywhere.altinity.cloud\"` |\n| `image` | Custom Docker image | `string` | `\"altinity/cloud-connect:latest-master\"` |\n| `image_pull_policy` | Kubernetes image pull policy | `string` | `\"IfNotPresent\"` |\n| `wait_connected` | Wait for environment to be connected | `bool` | `false` |\n| `wait_ready` | Wait for environment to be ready for ClickHouse clusters | `bool` | `false` |\n| `wait_timeout_in_seconds` | Maximum wait time in seconds | `number` | `2700` |\n| `namespace_annotations` | Annotations for altinity-cloud-* namespaces | `map(string)` | `{}` |\n| `namespace_labels` | Labels for altinity-cloud-* namespaces | `map(string)` | `{}` |\n| `tolerations` | Additional tolerations for cloud-connect deployment | `list(object)` | `[]` |\n| `node_selector` | Node selector for cloud-connect deployment | `map(string)` | `null` |\n\nFor a complete list of variables, see [variables.tf](variables.tf).\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| `system_namespace` | Name of the altinity-cloud-system namespace |\n| `clickhouse_namespace` | Name of the altinity-cloud-managed-clickhouse namespace |\n\n## Troubleshooting\n\n- **Deployment fails to start:** Check certificate validity and network connectivity to Altinity.Cloud. Review pod logs with `kubectl logs -n altinity-cloud-system deployment/cloud-connect`.\n- **Connection timeouts:** Verify firewall rules allow outbound HTTPS traffic to `anywhere.altinity.cloud`. Check if corporate proxy settings are required.\n- **Permission errors:** Ensure the Kubernetes provider has sufficient RBAC permissions to create namespaces, deployments, secrets, and service accounts.\n- **Certificate issues:** Regenerate the certificate using `altinitycloud-connect login` and ensure the PEM content is correctly formatted.\n\n### Need Help?\n\nIf you encounter issues not covered above, please [create an issue](https://github.com/altinity/terraform-altinitycloud-connect-aws/issues/new) with detailed information about your problem.\n\n## Contributing\n\nContributions are welcome! Please submit a Pull Request or open an issue for major changes. See [CONTRIBUTING.md](CONTRIBUTING.md) for development guidelines and advanced configuration examples.\n\n## License\n\nAll code, unless specified otherwise, is licensed under the [Apache-2.0](LICENSE) license.\nCopyright (c) 2022 Altinity, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinity%2Fterraform-altinitycloud-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltinity%2Fterraform-altinitycloud-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinity%2Fterraform-altinitycloud-connect/lists"}