{"id":17888087,"url":"https://github.com/fireflycons/terraform-provider-localos","last_synced_at":"2026-01-20T13:06:11.363Z","repository":{"id":199856542,"uuid":"703209213","full_name":"fireflycons/terraform-provider-localos","owner":"fireflycons","description":"Data Source provider to get information from the local OS on which you are running Terraform","archived":false,"fork":false,"pushed_at":"2024-01-26T20:23:12.000Z","size":82,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T17:25:15.058Z","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/fireflycons.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}},"created_at":"2023-10-10T19:58:19.000Z","updated_at":"2023-10-16T19:30:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b8d860d-9d9b-4585-969c-c3223b9e532c","html_url":"https://github.com/fireflycons/terraform-provider-localos","commit_stats":null,"previous_names":["fireflycons/local-os","fireflycons/terraform-provider-localos"],"tags_count":4,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding-framework","purl":"pkg:github/fireflycons/terraform-provider-localos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fterraform-provider-localos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fterraform-provider-localos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fterraform-provider-localos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fterraform-provider-localos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireflycons","download_url":"https://codeload.github.com/fireflycons/terraform-provider-localos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fterraform-provider-localos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10-28T13:36:31.859Z","updated_at":"2026-01-20T13:06:11.345Z","avatar_url":"https://github.com/fireflycons.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider localos\n\nThe [localos provider](./docs/index.md) contains data sources that get information about the machine running `terraform apply`\n\nThe documentation for the provider can be found on the [Terraform Registry](https://registry.terraform.io/providers/fireflycons/localos/latest/docs)\n\n## Example\n\n```hcl\nterraform {\n  required_providers {\n    localos = {\n      source = \"fireflycons/localos\"\n      version = \"0.1.1\"\n    }\n  }\n}\n\nprovider \"localos\" {}\n\ndata \"localos_folders\" \"folders\" {}\ndata \"localos_public_ip\" \"my_ip\" {}\n\n# Create a key pair\nresource \"tls_private_key\" \"pk\" {\n  algorithm = \"RSA\"\n  rsa_bits  = 4096\n}\n\nresource \"aws_key_pair\" \"generated_key\" {\n  key_name   = \"test-kp\"\n  public_key = tls_private_key.pk.public_key_openssh\n}\n\n# Save the PK to OS specific SSH keys folder\nresource \"local_sensitive_file\" \"private_key\" {\n  content  = tls_private_key.pk.private_key_pem\n  filename = \"${data.localos_folders.folders.ssh}/test-kp-pvt.pem\"\n}\n\n# Create a security group that restricts access to only my public IP\nresource \"aws_security_group\" \"only_me\" {\n  name        = \"only_me\"\n  description = \"Allow all access only from my workstation\"\n  vpc_id      = var.vpc_id\n\n  ingress {\n    description = \"Any from my IP\"\n    from_port   = 0\n    to_port     = 0\n    protocol    = \"-1\"\n    cidr_blocks = [\n      data.localos_public_ip.my_ip.cidr\n    ]\n  }\n}\n```\n\n\n## Requirements to build/develop\n\n- [Terraform](https://developer.hashicorp.com/terraform/downloads) \u003e= 1.0\n- [Go](https://golang.org/doc/install) \u003e= 1.20\n\n## Using the provider\n\nThe data sources are\n\n* [localos_info](./docs/data-sources/info.md) - Retrieves operating system (windows, linux etc), architecture (amd64, arm64 etc), and all environment variables.\n* [localos_folders](./docs/data-sources/folders.md) - Gets paths to local folders of interest, currently user's home and ssh key directories.\n* [localos_public_ip](./docs/data-sources/public_ip.md) - Gets the public IP of your workstation as an IP address and a /32 CIDR. Useful for configuring routes, firewalls etc for private infrastructure.\n\n\n## Developing the Provider\n\nIf you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (see [Requirements](#requirements) above).\n\nTo compile the provider, run `go install`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.\n\nTo generate or update documentation, run `go generate`.\n\nIn order to run the full suite of Acceptance tests, run `make testacc`.\n\n*Note:* Acceptance tests create real resources, and often cost money to run.\n\n```shell\nmake testacc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fterraform-provider-localos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireflycons%2Fterraform-provider-localos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fterraform-provider-localos/lists"}