{"id":45738833,"url":"https://github.com/ory/terraform-provider-ory","last_synced_at":"2026-05-27T14:04:22.076Z","repository":{"id":337783460,"uuid":"1117526193","full_name":"ory/terraform-provider-ory","owner":"ory","description":"Terraform provider for managing Ory Network resources — identities, OAuth2 clients, permissions, organizations, projects, and more.","archived":false,"fork":false,"pushed_at":"2026-05-21T07:31:47.000Z","size":52715,"stargazers_count":18,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T14:44:36.947Z","etag":null,"topics":["identity","infrastructure-as-code","oauth2","ory","ory-network","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/ory/ory/latest","language":"Go","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/ory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-16T12:43:26.000Z","updated_at":"2026-05-21T07:31:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ory/terraform-provider-ory","commit_stats":null,"previous_names":["ory/terraform-provider-orynetwork"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/ory/terraform-provider-ory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fterraform-provider-ory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fterraform-provider-ory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fterraform-provider-ory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fterraform-provider-ory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ory","download_url":"https://codeload.github.com/ory/terraform-provider-ory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fterraform-provider-ory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33568863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["identity","infrastructure-as-code","oauth2","ory","ory-network","terraform","terraform-provider"],"created_at":"2026-02-25T12:16:00.418Z","updated_at":"2026-05-27T14:04:22.071Z","avatar_url":"https://github.com/ory.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider for Ory Network\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ory/terraform-provider-ory.svg)](https://pkg.go.dev/github.com/ory/terraform-provider-ory)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ory/terraform-provider-ory)](https://goreportcard.com/report/github.com/ory/terraform-provider-ory)\n\n\u003e **Special Thanks**\n\u003e Shoutout to [Jason Hernandez](https://github.com/jasonhernandez) and the [Materialize](https://materialize.com/) team for creating the initial version of this provider! Also see [NOTICE.md](./NOTICE.md)\n\nA Terraform provider for managing [Ory Network](https://www.ory.sh/) resources using infrastructure-as-code.\n\n\u003e **Note**: This provider is for **Ory Network** (the managed SaaS offering) only. It does not support self-hosted Ory deployments.\n\n## Migrating Deprecated `ory_project_config` Attributes\n\nMany attributes in the `ory_project_config` resource have been renamed to follow the OpenAPI spec naming convention. The old names still work but will show deprecation warnings in Terraform output and will be removed in a future major version. Run `./scripts/migrate-deprecated-attrs.sh` to see the full list of renames.\n\n**Examples of renamed attributes:**\n\n| Old Name | New Name |\n|----------|----------|\n| `enable_password` | `selfservice_methods_password_enabled` |\n| `login_ui_url` | `selfservice_flows_login_ui_url` |\n| `oauth2_access_token_lifespan` | `oauth2_ttl_access_token` |\n| `password_min_length` | `selfservice_methods_password_config_min_password_length` |\n| `smtp_from_address` | `courier_smtp_from_address` |\n\nTo migrate your `.tf` files automatically, run the provided migration script:\n\n```bash\n./scripts/migrate-deprecated-attrs.sh /path/to/your/terraform/configs\n```\n\nThe script creates `.bak` backups of each modified file. After migrating, run `terraform plan` to verify no changes are detected.\n\nFor the full list of renamed attributes, see the [project_config resource docs](docs/resources/project_config.md).\n\n## Requirements\n\n- [Terraform](https://www.terraform.io/downloads) \u003e= 1.0\n- [Go](https://golang.org/doc/install) (see version in `go.mod`; for building from source)\n- An [Ory Network](https://console.ory.sh/) account\n\n## Installation\n\n```hcl\nterraform {\n  required_providers {\n    ory = {\n      source = \"ory/ory\"\n    }\n  }\n}\n```\n\n## Authentication\n\nOry Network uses two types of API keys:\n\n| Key Type          | Prefix        | Purpose                                       |\n| ----------------- | ------------- | --------------------------------------------- |\n| Workspace API Key | `ory_wak_...` | Projects, organizations, workspace management |\n| Project API Key   | `ory_pat_...` | Identities, OAuth2 clients, relationships     |\n\n```bash\nexport ORY_WORKSPACE_API_KEY=\"ory_wak_...\"\nexport ORY_PROJECT_API_KEY=\"ory_pat_...\"\nexport ORY_PROJECT_ID=\"your-project-uuid\"\nexport ORY_PROJECT_SLUG=\"your-project-slug\"\n```\n\nOr configure directly in the provider block:\n\n```hcl\nprovider \"ory\" {\n  workspace_api_key = var.ory_workspace_key  # or ORY_WORKSPACE_API_KEY env var\n  project_api_key   = var.ory_project_key    # or ORY_PROJECT_API_KEY env var\n  project_id        = var.ory_project_id     # or ORY_PROJECT_ID env var\n  project_slug      = var.ory_project_slug   # or ORY_PROJECT_SLUG env var\n}\n```\n\n## Quick Start\n\n```hcl\nterraform {\n  required_providers {\n    ory = {\n      source = \"ory/ory\"\n    }\n  }\n}\n\nprovider \"ory\" {}\n\n# Configure project settings\nresource \"ory_project_config\" \"main\" {\n  cors_enabled         = true\n  cors_origins         = [\"https://app.example.com\"]\n  password_min_length  = 10\n  session_lifespan     = \"720h0m0s\"  # 30 days\n}\n\n# Add Google social login\nresource \"ory_social_provider\" \"google\" {\n  provider_id   = \"google\"\n  provider_type = \"google\"\n  client_id     = var.google_client_id\n  client_secret = var.google_client_secret\n  scope         = [\"email\", \"profile\"]\n}\n\n# Create a webhook for new registrations\nresource \"ory_action\" \"welcome_email\" {\n  flow        = \"registration\"\n  timing      = \"after\"\n  auth_method = \"password\"\n  url         = \"https://api.example.com/webhooks/welcome\"\n  method      = \"POST\"\n}\n```\n\nFor all available resources, data sources, and their attributes, see the [Terraform Registry documentation](https://registry.terraform.io/providers/ory/ory/latest/docs) or browse the `examples/` directory.\n\n## Documentation\n\nDocumentation is auto-generated from templates in `templates/` using [tfplugindocs](https://github.com/hashicorp/terraform-plugin-docs). Do NOT edit files in `docs/` directly — they are overwritten by `make format`.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and contribution guidelines.\n\n## License\n\nApache License, Version 2.0. See [LICENSE](LICENSE).\n\n## Related Links\n\n- [Ory Network Documentation](https://www.ory.sh/docs/)\n- [Ory API Reference](https://www.ory.sh/docs/reference/api)\n- [Terraform Provider Development](https://developer.hashicorp.com/terraform/plugin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fterraform-provider-ory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fory%2Fterraform-provider-ory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fterraform-provider-ory/lists"}