{"id":15514483,"url":"https://github.com/petems/terraform-provider-extip","last_synced_at":"2025-06-16T16:04:47.001Z","repository":{"id":38843264,"uuid":"138162153","full_name":"petems/terraform-provider-extip","owner":"petems","description":"A Terraform provider for a data source to get an external IP","archived":false,"fork":false,"pushed_at":"2022-06-02T07:13:11.000Z","size":9101,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T03:16:32.926Z","etag":null,"topics":["data-source","ip","provider","terraform"],"latest_commit_sha":null,"homepage":"","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/petems.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}},"created_at":"2018-06-21T11:35:36.000Z","updated_at":"2021-08-28T19:51:32.000Z","dependencies_parsed_at":"2022-08-28T02:00:47.731Z","dependency_job_id":null,"html_url":"https://github.com/petems/terraform-provider-extip","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/petems/terraform-provider-extip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-extip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-extip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-extip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-extip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petems","download_url":"https://codeload.github.com/petems/terraform-provider-extip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petems%2Fterraform-provider-extip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260193975,"owners_count":22972619,"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","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":["data-source","ip","provider","terraform"],"created_at":"2024-10-02T09:59:31.191Z","updated_at":"2025-06-16T16:04:46.966Z","avatar_url":"https://github.com/petems.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-provider-extip\n\n[![Build Status](https://travis-ci.org/petems/terraform-provider-extip.svg?branch=master)](https://travis-ci.org/petems/terraform-provider-extip)[![Coverage Status](https://coveralls.io/repos/github/petems/terraform-provider-extip/badge.svg?branch=add_coveralls_action)](https://coveralls.io/github/petems/terraform-provider-extip?branch=add_coveralls_action)\n\nTerraform provider for getting your current external IP as a data source.\n\n## Requirements\n-\t[Terraform](https://www.terraform.io/downloads.html) 0.11.x\n-\t[Go](https://golang.org/doc/install) 1.10 (to build the provider plugin)\n\n## Installing the Provider\nFollow the instructions to [install it as a plugin](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin). After placing it into your plugins directory, run `terraform init` to initialize it.\n\n## Usage\n\n```hcl\ndata \"extip\" \"external_ip\" {\n}\n\noutput \"external_ip\" {\n  value = data.extip.external_ip.ipaddress\n}\n\n```\n\nGives the result:\n```hcl\ndata.extip.external_ip: Refreshing state...\n\nApply complete! Resources: 0 added, 0 changed, 0 destroyed.\n\nOutputs:\n\nexternal_ip = 238.209.109.16\n```\n\nYou can also specify what resolver you want to use to get the URL:\n\n```hcl\ndata \"extip\" \"external_ip_from_aws\" {\n  resolver = \"https://checkip.amazonaws.com/\"\n}\n\noutput \"external_ip_from_aws\" {\n  value = data.extip.external_ip_from_aws.ipaddress\n}\n```\n\n\nExamples are under [/examples](/examples).\n\n## Building the Provider\nClone and build the repository\n\n```sh\ngo get github.com/petems/terraform-provider-extip\nmake build\n```\n\nSymlink the binary to your terraform plugins directory:\n\n```sh\nln -s $GOPATH/bin/terraform-provider-extip ~/.terraform.d/plugins/\n```\n\n## Updating the Provider\n\n```sh\ngo get -u github.com/petems/terraform-provider-extip\nmake build\n```\n\n## TODO\n\n* ~~Add configuration of the consensus timing (ie. how long it will wait to resolve)~~ #5\n* ~~Add option of getting ipv6 or ipv4 ipaddress~~ Validate if returned address is a valid IP #10\n\n## Contributing\n* Write code\n* Run tests: `make test`\n* Build the binary: `make build`\\\n* Open a pull-request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetems%2Fterraform-provider-extip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetems%2Fterraform-provider-extip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetems%2Fterraform-provider-extip/lists"}