遇见数据集

TerraDS: A Dataset for Terraform HCL Programs

收藏
Zenodo2026-05-25 更新2026-05-26 收录
官方服务:

资源简介:

TerraDS The TerraDS dataset provides a comprehensive collection of Terraform programs written in the HashiCorp Configuration Language (HCL). As Infrastructure as Code (IaC) gains popularity for managing cloud infrastructure, Terraform has become one of the leading tools due to its declarative nature and widespread adoption. However, a lack of publicly available, large-scale datasets has hindered systematic research on Terraform practices. TerraDS addresses this gap by compiling metadata and source code from 82,749 open-source repositories with valid licenses. This dataset aims to foster research on best practices, vulnerabilities, and improvements in IaC methodologies. This version updates the dataset cutoff from August 2024 to January 2026. Structure of the Database The TerraDS dataset is organized into two main components: a SQLite database containing metadata and an archive of source code (~499 MB). The metadata, captured in a structured format, includes information about repositories, modules, and resources: 1. Repository Data: Contains 82,749 repositories with fields such as repository name, creation date, star count, and permissive license details. Provides cloneable URLs for access and analysis. Tracks additional metrics like repository size and the latest commit details. 2. Module Data: Consists of 394,004 modules identified within the repositories. Each module includes its relative path, referenced providers, and external module calls stored as JSON objects. 3. Resource Data: Encompasses 2,497,629 resources, split into managed 2,100,728 and data 396,901 resources. Each resource entry details its type, provider, and whether it is managed or read-only. Structure of the Archive The provided archive contains the source code of the 82,749 repositories to allow further analysis based on the actual source instead of the metadata only. As such, researchers can access the permissive repositories and conduct studies on the executable HCL code. Tools The "HCL Dataset Tools" file contains a snapshot of the https://github.com/prg-grp/hcl-dataset-tools repository - for long term archival reasons. The tools in this repository can be used to reproduce this dataset. One of the tools - "RepositorySearcher" - can be used to fetch metadata for various other GitHub API queries, not only Terraform code. While the RepositorySearcher allows usage for other types of repository search, the other tools provided are focused on Terraform repositories.

提供机构:
Zenodo
创建时间:
2026-05-25
二维码
社区交流群
二维码
科研交流群
商业服务