{"id":15065538,"url":"https://github.com/enflow/terraform-provider-redirectpizza","last_synced_at":"2025-04-10T16:42:39.603Z","repository":{"id":143132052,"uuid":"593322611","full_name":"enflow/terraform-provider-redirectpizza","owner":"enflow","description":"Official redirect.pizza Terraform provider","archived":false,"fork":false,"pushed_at":"2025-03-24T03:36:55.000Z","size":306,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T14:38:56.660Z","etag":null,"topics":["golang","redirectpizza","terraform"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/enflow/redirectpizza","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/enflow.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}},"created_at":"2023-01-25T18:37:45.000Z","updated_at":"2025-03-24T03:36:52.000Z","dependencies_parsed_at":"2024-02-05T04:23:10.618Z","dependency_job_id":"533443d2-0d61-415d-80ef-db0d5e69d949","html_url":"https://github.com/enflow/terraform-provider-redirectpizza","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fterraform-provider-redirectpizza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fterraform-provider-redirectpizza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fterraform-provider-redirectpizza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Fterraform-provider-redirectpizza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enflow","download_url":"https://codeload.github.com/enflow/terraform-provider-redirectpizza/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252728,"owners_count":21072703,"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":["golang","redirectpizza","terraform"],"created_at":"2024-09-25T00:40:43.614Z","updated_at":"2025-04-10T16:42:39.579Z","avatar_url":"https://github.com/enflow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redirect.pizza Terraform Provider\n\nTerraform provider for [redirect.pizza](https://redirect.pizza). This provides provides a single resource `redirectpizza_redirect` to manage all your redirecting needs.\n\nWe recommend using the `redirectpizza_redirect` in combination with your DNS Terraform provider. \nYou may hardcode the values from https://redirect.pizza/support/dns-type to use for your DNS records or your own [Dedicated IP](https://redirect.pizza/support/dedicated-ip) address.\n\n## Using the provider\n\n```\nterraform {\n  required_providers {\n    redirectpizza = {\n      source  = \"github.com/enflow/redirectpizza\"\n      version = \"0.2.2\"\n    }\n  }\n}\n\n# Set the variable value in *.tfvars file\n# or using -var=\"rp_token=...\" CLI option\nvariable \"rp_token\" {}\n\nprovider \"redirectpizza\" {\n  token = var.rp_token\n}\n\nresource \"redirectpizza_redirect\" \"old-domain\" {\n  sources = [\n    \"old-domain.com\"\n  ]\n  destination {\n    url = \"new-domain.com\"\n  }\n\n  # Optional\n  # Must be one of:\n  # - permanent\n  # - permanent:307\n  # - permanent:308\n  # - temporary\n  # - frame\n  redirect_type = \"permanent\"\n\n  # Optional\n  tracking       = true\n  uri_forwarding = true\n  keep_query_string     = false\n  tags                  = [\"prod\", \"dev\"]\n}\n```\n\n## Requirements\n\n-\t[Terraform](https://www.terraform.io/downloads.html) \u003e= 0.13.x\n-\t[Go](https://golang.org/doc/install) \u003e= 1.18\n\n## Import\nTo import existing redirect.pizza redirects to Terraform's state, you may use the `import` block. \nThe `id` can be found in the redirect.pizza's API response or in the URL when navigating to a specific redirect. Example: https://redirect.pizza/redirects/123123123\n\n```\nterraform import redirectpizza_redirect.old-domain.com 123123123\n```\n\n## Building The Provider\n\n1. Clone the repository\n1. Enter the repository directory\n1. Build the provider using the Go `install` command: \n```sh\n$ go install\n```\n\n## Adding Dependencies\n\nThis provider uses [Go modules](https://github.com/golang/go/wiki/Modules).\nPlease see the Go documentation for the most up to date information about using Go modules.\n\nTo add a new dependency `github.com/author/dependency` to your Terraform provider:\n\n```\ngo get github.com/author/dependency\ngo mod tidy\n```\n\nThen commit the changes to `go.mod` and `go.sum`.\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\nTo run locally, run `(cd ..; export GOBIN=$(pwd); go install) \u0026\u0026 TF_LOG=WARN TF_VAR_rp_token=rpa_xxxxxxxxxxxx terraform apply` in the `examples/` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Fterraform-provider-redirectpizza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenflow%2Fterraform-provider-redirectpizza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Fterraform-provider-redirectpizza/lists"}