{"id":29881148,"url":"https://github.com/letscloud-community/terraform-provider-letscloud","last_synced_at":"2025-07-31T10:34:48.376Z","repository":{"id":294548529,"uuid":"985865222","full_name":"letscloud-community/terraform-provider-letscloud","owner":"letscloud-community","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-26T23:58:18.000Z","size":122,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T00:43:00.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letscloud-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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}},"created_at":"2025-05-18T17:23:19.000Z","updated_at":"2025-06-26T23:48:10.000Z","dependencies_parsed_at":"2025-05-21T00:41:54.399Z","dependency_job_id":null,"html_url":"https://github.com/letscloud-community/terraform-provider-letscloud","commit_stats":null,"previous_names":["letscloud-community/terraform-provider-letscloud"],"tags_count":1,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding-framework","purl":"pkg:github/letscloud-community/terraform-provider-letscloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscloud-community%2Fterraform-provider-letscloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscloud-community%2Fterraform-provider-letscloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscloud-community%2Fterraform-provider-letscloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscloud-community%2Fterraform-provider-letscloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letscloud-community","download_url":"https://codeload.github.com/letscloud-community/terraform-provider-letscloud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscloud-community%2Fterraform-provider-letscloud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268024806,"owners_count":24183153,"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-07-31T02:00:08.723Z","response_time":66,"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":"2025-07-31T10:34:45.669Z","updated_at":"2025-07-31T10:34:48.363Z","avatar_url":"https://github.com/letscloud-community.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider for LetsCloud\n\nThis is a Terraform provider for managing resources in LetsCloud. It allows you to create and manage instances, SSH keys, and other resources using Terraform.\n\n## Features\n\n- Create and manage LetsCloud instances\n- Manage SSH keys for secure instance access\n- Support for multiple regions and instance types\n- Secure authentication using API tokens\n\n## Requirements\n\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 0.13.0\n- [Go](https://golang.org/doc/install) \u003e= 1.18 (to build the provider plugin)\n\n## Installation\n\n### Using Terraform Registry\n\nAdd the following to your Terraform configuration:\n\n```hcl\nterraform {\n  required_providers {\n    letscloud = {\n      source  = \"letscloud-community/letscloud\"\n      version = \"1.0.1\"\n    }\n  }\n}\n\nprovider \"letscloud\" {\n  api_token = \"your-api-token\" # or use LETSCLOUD_API_TOKEN environment variable\n}\n```\n\n### Building from Source\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/letscloud-community/terraform-provider-letscloud\ncd terraform-provider-letscloud\n```\n\n2. Build the provider:\n```bash\nmake build\n```\n\n3. Install the provider:\n```bash\nmake install\n```\n\n## Quick Start\n\n1. Set your LetsCloud API token:\n```bash\nexport LETSCLOUD_API_TOKEN=\"your-api-token\"\n```\n\n2. Create a new Terraform configuration:\n```hcl\n# Create an SSH key\nresource \"letscloud_ssh_key\" \"main\" {\n  label = \"main-key\"\n  key   = file(\"~/.ssh/id_rsa.pub\")\n}\n\n# Create an instance\nresource \"letscloud_instance\" \"basic\" {\n  label         = \"basic-instance\"\n  plan_slug     = \"1vcpu-1gb-10ssd\"    # 1 vCPU, 1GB RAM, 10GB SSD\n  image_slug    = \"ubuntu-24.04-x86_64\" # Ubuntu 24.04 LTS\n  location_slug = \"MIA1\"               # Miami, USA\n  hostname      = \"basic-instance.example.com\"\n  ssh_keys      = [letscloud_ssh_key.main.id]\n  password      = \"P@ssw0rd123!Secure\" # Must meet password requirements\n  depends_on    = [letscloud_ssh_key.main]\n}\n```\n\n3. Initialize Terraform:\n```bash\nterraform init\n```\n\n4. Apply the configuration:\n```bash\nterraform apply\n```\n\n## Available Resources\n\n### letscloud_instance\n\nManages a LetsCloud instance. Supports:\n- Multiple instance types (plans)\n- Various operating systems (images)\n- Multiple regions (locations)\n- SSH key authentication\n- Custom hostnames\n\nExample:\n```hcl\nresource \"letscloud_instance\" \"example\" {\n  label         = \"example-instance\"\n  plan_slug     = \"1vcpu-1gb-10ssd\"\n  image_slug    = \"ubuntu-24.04-x86_64\"\n  location_slug = \"MIA1\"\n  hostname      = \"example.example.com\"\n  ssh_keys      = [letscloud_ssh_key.main.id]\n  password      = \"P@ssw0rd123!Secure\"\n}\n```\n\n### letscloud_ssh_key\n\nManages SSH keys for secure instance access. Supports:\n- Multiple SSH keys per account\n- Unique labels for key identification\n- Public key format validation\n\nExample:\n```hcl\nresource \"letscloud_ssh_key\" \"main\" {\n  label = \"main-key\"\n  key   = file(\"~/.ssh/id_rsa.pub\")\n}\n```\n\n## Best Practices\n\n1. **Security**:\n   - Use SSH keys for instance access\n   - Follow password requirements\n   - Use unique labels for resources\n   - Store API tokens securely\n\n2. **Resource Management**:\n   - Use descriptive labels\n   - Follow naming conventions\n   - Implement proper dependencies\n   - Monitor resource usage\n\n3. **Configuration**:\n   - Use environment variables for sensitive data\n   - Implement proper state management\n   - Use version control for configurations\n   - Document your infrastructure\n\n## Examples\n\nCheck the [examples](./examples) directory for complete examples:\n- [Basic Instance](./examples/resources/letscloud_instance/basic.tf)\n- [Instance with SSH Keys](./examples/resources/letscloud_instance/with_ssh_keys.tf)\n- [Complete Setup](./examples/resources/letscloud_instance/complete.tf)\n- [SSH Key Management](./examples/resources/letscloud_ssh_key)\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor support, please:\n1. Check the [documentation](./docs)\n2. Open an issue in the GitHub repository\n3. Contact LetsCloud support\n\n## Acknowledgments\n\n- [LetsCloud](https://letscloud.io) for providing the API\n- [Terraform](https://terraform.io) for the provider framework\n- All contributors who have helped improve this provider\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletscloud-community%2Fterraform-provider-letscloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletscloud-community%2Fterraform-provider-letscloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletscloud-community%2Fterraform-provider-letscloud/lists"}