{"id":15101358,"url":"https://github.com/contentful-labs/terraform-contentful","last_synced_at":"2025-09-17T19:05:12.057Z","repository":{"id":57637827,"uuid":"84441802","full_name":"contentful-labs/terraform-contentful","owner":"contentful-labs","description":"Terraform provider for Contentful","archived":false,"fork":false,"pushed_at":"2024-06-07T09:15:01.000Z","size":75,"stargazers_count":29,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-04T12:24:56.990Z","etag":null,"topics":["contentful","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contentful-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-09T12:50:58.000Z","updated_at":"2024-04-07T13:22:25.000Z","dependencies_parsed_at":"2024-09-15T20:19:18.881Z","dependency_job_id":null,"html_url":"https://github.com/contentful-labs/terraform-contentful","commit_stats":{"total_commits":41,"total_committers":6,"mean_commits":6.833333333333333,"dds":0.6097560975609756,"last_synced_commit":"18ff0e5f59363b177b60a571dfa330d48e42565d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/contentful-labs/terraform-contentful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-contentful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-contentful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-contentful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-contentful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentful-labs","download_url":"https://codeload.github.com/contentful-labs/terraform-contentful/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-contentful/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275648308,"owners_count":25503197,"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-09-17T02:00:09.119Z","response_time":84,"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":["contentful","provider","terraform"],"created_at":"2024-09-25T18:21:20.144Z","updated_at":"2025-09-17T19:05:12.041Z","avatar_url":"https://github.com/contentful-labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/circleci/project/github/contentful-labs/terraform-contentful.svg?branch=master)](https://circleci.com/gh/contentful-labs/terraform-contentful)\n[![license](https://img.shields.io/github/license/contentful-labs/terraform-contentful.svg)](https://github.com/contentful-labs/terraform-contentful/blob/master/LICENSE)\n\nTerraform Provider for [Contentful's](https://www.contentful.com) Content Management API\n\n# About\n\n\n[Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.\n\n[Terraform](https://www.terraform.io) is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions.\n\n# Features\n\nCreate, update and delete Contentful resources such as:\n- [x] Spaces\n- [ ] Content Types\n- [x] API Keys\n- [x] Webhooks\n- [ ] Locales\n\n# Getting started\n\nDownload [go](https://golang.org/dl) for your platform.\n\nFollow the [Install the Go tools](https://golang.org/doc/install#install) instructions.\n\nDownload [terraform](https://www.terraform.io/downloads.html) for your platform.\n\nFollow the [Installing Terraform](https://www.terraform.io/intro/getting-started/install.html) instructions.\n\nCreate a directory where your terraform files and states will be placed. Although not mandatory this should be placed under a version control software such as [git](https://git-scm.com).\n\nMake sure you have your Content Management API Token and the organization ID before starting. As an alternative to configuring the provider in the terraform file you can also set environment variables.\n\n```sh\n    # For Linux/Mac OS\n    export CONTENTFUL_ORGANIZATION_ID=\u003cyour organization ID\u003e\n    export CONTENTFUL_MANAGEMENT_TOKEN=\u003cyour CMA Token\u003e\n```\n\n```\n    REM For Windows\n    setx CONTENTFUL_ORGANIZATION_ID \"\u003cyour organization ID\u003e\"\n    setx CONTENTFUL_MANAGEMENT_TOKEN \"\u003cyour CMA Token\u003e\"\n```\n\n# Using the provider\nBuild the binary\n\n    $ go build -o terraform-provider-contentful\n\nAdd it to your ~/.terraformrc (or %APPDATA%/terraform.rc for Windows)\n\n    $ cat ~/.terraformrc\n    providers {\n        contentful = \"\u003cpath to the go binary\u003e/terraform-provider-contentful\"\n    }\n\nUse the provider by creating a main.tf file with:\n\n    provider \"contentful\" {\n      cma_token = \"\u003cyour CMA Token\u003e\"\n      organization_id = \"\u003cyour organization ID\u003e\"\n    }\n    resource \"contentful_space\" \"test\" {\n      name = \"my-update-space-name\"\n    }\n\nRun the terraform plan\n\n    terraform plan -out=contentful.plan\n\nCheck the changes\n```\nThe refreshed state will be used to calculate this plan, but will not be\npersisted to local or remote state storage.\n\nThe Terraform execution plan has been generated and is shown below.\nResources are shown in alphabetical order for quick scanning. Green resources\nwill be created (or destroyed and then created if an existing resource\nexists), yellow resources are being changed in-place, and red resources\nwill be destroyed. Cyan entries are data sources to be read.\n\nYour plan was also saved to the path below. Call the \"apply\" subcommand\nwith this plan file and Terraform will exactly execute this execution\nplan.\n\nPath: contentful.plan\n\n+ contentful_space.test\n    default_locale: \"en\"\n    name:           \"my-update-space-name\"\n    version:        \"\u003ccomputed\u003e\"\n\n\nPlan: 1 to add, 0 to change, 0 to destroy.\n```\n\nApply the plan\n```\ncontentful_space.test: Creating...\n  default_locale: \"\" =\u003e \"en\"\n  name:           \"\" =\u003e \"my-update-space-name\"\n  version:        \"\" =\u003e \"\u003ccomputed\u003e\"\ncontentful_space.test: Creation complete (ID: yculypygam9h)\n\nApply complete! Resources: 1 added, 0 changed, 0 destroyed.\n\nThe state of your infrastructure has been saved to the path\nbelow. This state is required to modify and destroy your\ninfrastructure, so keep it safe. To inspect the complete state\nuse the `terraform show` command.\n\nState path:\n```\n\n## Testing\n\n    TF_ACC=1 go test -v\n\nTo enable higher verbose mode\n\n    TF_LOG=debug TF_ACC=1 go test -v\n\n## Documentation/References\n\n### Hashicorp\n[Terraform plugins](https://www.terraform.io/docs/plugins/basics.html)\n\n[Writing custom terraform providers](https://www.hashicorp.com/blog/writing-custom-terraform-providers)\n\n### Other references\nJulien Fabre: [Writing a Terraform provider](http://blog.jfabre.net/2017/01/22/writing-terraform-provider)\n\n## Support\n\nIf you have a problem with this provider, please file an [issue](https://github.com/contentful-labs/terraform-contentful/issues/new) here on Github.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful-labs%2Fterraform-contentful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentful-labs%2Fterraform-contentful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful-labs%2Fterraform-contentful/lists"}