Dataset Viewer
Auto-converted to Parquet Duplicate
id
int32
3
295
prompt
stringlengths
102
236
prompt_original
stringlengths
34
704
intent
stringlengths
29
1.52k
main_tf
stringlengths
162
4.67k
checks_rego
stringlengths
171
6.45k
plan_json
stringlengths
1.59k
40.6k
57
I need my main domain to direct visitors to a specific place where our app is running, keeping the setup straightforward.
Set up a non-alias aws_route_53 record that is linked to an aws_route53_zone resource named "example53.com"
Has one "aws_route53_zone" resource with "name" set to "example53.com" Has one "aws_route53_record" resource with "name" with "type" with "ttl" with "records" with "zone_id" referencing the "aws_route53_zone" resource
provider "aws" { region = "us-east-1" } resource "aws_route53_zone" "example53" { name = "example53.com" } resource "aws_route53_record" "example53_A" { zone_id = aws_route53_zone.example53.zone_id name = "example53.com" type = "A" ttl = "300" records = ["192.0.2.1"] }
package terraform.validation default is_configuration_valid = false default is_valid_r53_zone = false default is_valid_r53_record = false # Validate aws_route53_zone resource is_valid_r53_zone { some i resource := input.configuration.root_module.resources[i] resource.type == "aws_route53_zone" resource.ex...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_route53_record.example53_A","mode":"managed","type":"aws_route53_record","name":"example53_A","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":2,"values":{"alias":[],"cidr_routing_pol...
12
I need an easy way to run and manage a web app without dealing with a lot of server setup, and it should scale automatically and run with the right access to other parts of our system.
Create an elastic beanstalk WebServer environment with a elastic beanstalk application. Name the iam_role "eb_ec2_role", the instance profile "eb_ec2_profile", and the elastic beanstalk application "my_application"
Has one "aws_iam_role" resource with "name" with "assume_role_policy" and "Service" set to "ec2.amazonaws.com" Has one "aws_iam_role_policy_attachment" resource with "role" referencing the "aws_iam_role" with "policy_arn" set to "arn:aws:iam::aws:policy/AWSElasticBeanstalkWebTier" Has one "aws_iam_ins...
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.75" } } required_version = ">= 1.9.0" } provider "aws" { region = "us-east-1" } # IAM role for Elastic Beanstalk EC2 instances resource "aws_iam_role" "eb_ec2_role" { name = "elastic_beanstalk_ec2_role_...
package terraform.validation default is_configuration_valid = false default is_valid_iam_instance_profile = false default is_valid_iam_role = false default is_valid_iam_role_policy_attachment = false default is_valid_eb_app = false default is_valid_eb_env = false is_valid_iam_role { some i resource :...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_elastic_beanstalk_application.my_application","mode":"managed","type":"aws_elastic_beanstalk_application","name":"my_application","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":0,"v...
140
I need our data store to stay fast and available for people across the country, even if one area has an outage.
Create a DynamoDB table with replicas in us-east-2 and us-west-2
Has one "aws_dynamodb_table" resource with one "replica" with one "region_name" = "us-east-2" with one "replica" with one "region_name" = "us-west-2"
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.0" } } } # Configure the AWS Provider provider "aws" { region = "us-east-1" } resource "aws_dynamodb_table" "example" { name = "example" hash_key = "TestTableHashKey" billing_mode = "PAY_PER_REQUEST" stream_enabled = true stream_view_ty...
package main import future.keywords.in default allow = false # Required replica regions required_regions := {"us-east-2", "us-west-2"} # Check for DynamoDB table creation dynamodb_table_created(resources) { some resource in resources resource.type == "aws_dynamodb_table" resource.change.actions[_] == "create" } # ...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_dynamodb_table.example","mode":"managed","type":"aws_dynamodb_table","name":"example","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":1,"values":{"attribute":[{"name":"TestTableHashK...
125
I need a reliable way to collect activity data from our messaging system and funnel it into a storage setup for later analysis, and it should all run in one of our main regions while keeping the network setup straightforward and secure.
Create a managed MSK cluster in us-east1 logging to a Kinesis Firehose
Has one "aws_msk_cluster" resource with one "logging_info" with one "broker_logs" with one "firehose" with one "enabled" = true
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.75" } } required_version = ">= 1.9.0" } provider "aws" { region = "us-east-1" } resource "aws_vpc" "vpc" { cidr_block = "192.168.0.0/22" } data "aws_availability_zones" "azs" { state = "available" ...
package main import future.keywords.in default allow = false # Check if any MSK cluster is being created msk_cluster_created(resources) { some resource in resources resource.type == "aws_msk_cluster" resource.change.actions[_] == "create" } # Check if Kinesis Firehose logging is enabled for broker logs firehose_log...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"outputs":{"bootstrap_brokers_tls":{"sensitive":false},"zookeeper_connect_string":{"sensitive":false}},"root_module":{"resources":[{"address":"aws_iam_role.firehose_role","mode":"managed","type":"aws_iam_role","name":"firehose_role","provider_name":...
114
I need a way to speed up repeated data lookups so our main data store doesn’t get hammered under load.
Provide a resource to reduce the number of database calls.
requires cluster id, engine=memcached, node_type, num_cache_nodes, parameter_group_name
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.0" } } } provider "aws" { region = "us-east-1" } resource "aws_elasticache_cluster" "example" { cluster_id = "cluster-example" engine = "memcached" node_type = "cache.m...
package main import future.keywords.in default allow = false aws_elasticache_cluster_valid(resources) { some resource in resources resource.type == "aws_elasticache_cluster" resource.change.after.engine == "memcached" } # Aggregate all checks allow { aws_elasticache_cluster_valid(input.resource_chan...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_elasticache_cluster.example","mode":"managed","type":"aws_elasticache_cluster","name":"example","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":0,"values":{"auto_minor_version_upgrad...
71
I need to add a pool of machines that can join our container platform, scale up and down automatically, and have whatever access they need to pull images and handle networking, while keeping the setup simple and reliable.
Create a Terraform script for an AWS EKS node group (with name attribute set to "example") linked to a specific EKS cluster (with name attribute set to "example"). Define a resource with details including the node group name, node role ARN, and subnet IDs. Configure scaling parameters (desired size is 1, max size is 2,...
has one "aws_eks_node_group" resource with one "cluster_name" with one "node_group_name" with one "node_role_arn" with one "subnet_ids" with one "scaling_config" containing: one "desired_size" one "max_size" one "min_size" with one "update_config" containing: one "max_unavailable" with dependencies on three IAM role po...
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.75" } } required_version = ">= 1.9.0" } provider "aws" { region = "us-east-1" } resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" } data "aws_availability_zones" "available" { state = "available" ...
package terraform.validation default has_aws_eks_node_group_example = false has_aws_eks_node_group_example { node_group := input.planned_values.root_module.resources[_] node_group.type == "aws_eks_node_group" node_group.values.cluster_name == input.planned_values.root_module.resources[_].values.name n...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_eks_cluster.example","mode":"managed","type":"aws_eks_cluster","name":"example","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":1,"values":{"bootstrap_self_managed_addons":true,"enab...
52
I need to pull information from a site our system can’t reach directly, and it should grab the content automatically on a regular basis while going through our own network path for security.
Generate a Kendra data source resource with a proxy configuration
Has one "aws_iam_role" resource, one "aws_kendra_index" resource, and one "aws_kendra_data_source" resource with a "proxy_configuration" block
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 5.75" } } required_version = ">= 1.9.0" } provider "aws" { region = "us-east-1" } resource "aws_iam_role" "role" { name = "Kendra-Role" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statemen...
package terraform.validation import future.keywords.in default has_valid_resources = false has_valid_iam_role(resources) { some resource in resources resource.type == "aws_iam_role" contains(resource.change.after.assume_role_policy,"kendra.amazonaws.com") } has_valid_kendra_index { some i ...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_iam_role.role","mode":"managed","type":"aws_iam_role","name":"role","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":0,"values":{"assume_role_policy":"{\"Statement\":[{\"Action\":\"st...
279
I need a private network for our systems that can also reach the public internet, and it should be set up in the general area where most of our users are located.
creates a VPC with a CIDR block, and an internet gateway in the AWS us-east-2 region, both tagged with names "vpc" and "ig" respectively.
Has one "aws_vpc" resource: with a specified "cidr_block" with "enable_dns_hostnames" set to true Has one "aws_internet_gateway" resource: with "vpc_id" referencing the "aws_vpc" resource by its ID with a "tags" map that is not null, including at least a "Name" key with a value
terraform { required_providers { aws = { source = "hashicorp/aws" version = ">= 4.16" } } required_version = ">= 1.2.0" } # Define the provider block for AWS provider "aws" { region = "us-east-2" # Set your desired AWS region } resource "aws_vpc" "_" { cidr_block = "10.0.0.0/1...
package terraform.validation # Set default validation states default is_valid_vpc = false default is_valid_internet_gateway = false # Validate aws_vpc resource is_valid_vpc { some i resource := input.configuration.root_module.resources[i] resource.type == "aws_vpc" resource.expression...
{"format_version":"1.2","terraform_version":"1.14.3","planned_values":{"root_module":{"resources":[{"address":"aws_internet_gateway._","mode":"managed","type":"aws_internet_gateway","name":"_","provider_name":"registry.terraform.io/hashicorp/aws","schema_version":0,"values":{"region":"us-east-2","tags":{"Name":"ig"},"t...
44
"We need a way to collect a steady stream of app events, move them reliably into our search and anal(...TRUNCATED)
Generate a Kinesis Firehose Delivery Stream with a Elasticsearch Destination With VPC
"Has one \"aws_iam_role\" resource, one \"aws_s3_bucket\" resource, one \"aws_elasticsearch_domain\"(...TRUNCATED)
"terraform {\n required_providers {\n aws = {\n source = \"hashicorp/aws\"\n version (...TRUNCATED)
"package terraform.validation\n\nimport future.keywords.in\n\ndefault has_valid_resources = false\n\(...TRUNCATED)
"{\"format_version\":\"1.2\",\"terraform_version\":\"1.14.3\",\"planned_values\":{\"root_module\":{\(...TRUNCATED)
216
"I need our video site to load quickly for people in many different countries, with the files stored(...TRUNCATED)
"The infrastructure for a video streaming site that distribute video content globally. Accomplish th(...TRUNCATED)
"have one \"aws_cloudfront_origin_access_control\" resource\n with \"name\" argument\n with \"(...TRUNCATED)
"terraform {\n required_providers {\n aws = {\n source = \"hashicorp/aws\"\n version (...TRUNCATED)
"package netflix_middle\n\nimport data.set\nimport rego.v1\n\nbucket_valid(bucket) := true\n\naccess(...TRUNCATED)
"{\"format_version\":\"1.2\",\"terraform_version\":\"1.14.3\",\"planned_values\":{\"root_module\":{\(...TRUNCATED)
End of preview. Expand in Data Studio

Ambig-IaC Random 50

A random subset of 50 rows sampled without replacement from all 300 rows of the default/train split of znyang/ambig-iac.

Source revision: 96429693e7164b024333e6d02f8c6b2d017e4ecb. Sampling: Python random.Random(42).sample(range(300), 50). Rows are stored in random draw order. All seven original columns, their types, values, and original IDs are preserved. No filtering or text changes were made.

The split is named train and contains exactly 50 rows. The selected source row indices, IDs, and file checksums are recorded in sampling.json.

Columns: id, prompt, prompt_original, intent, main_tf, checks_rego, and plan_json.

Attribution and license

The upstream dataset is labeled MIT. This subset retains that license metadata. The original dataset description, authors' citation, and license statement are preserved in SOURCE_README.md. Credit for the original benchmark belongs to its authors. This repository only provides a random subset; Terraform execution was not revalidated for this subset.

Downloads last month
58