Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 4 new columns ({'Resource', 'Rego intent', 'Intent', 'Reference output'}) and 3 missing columns ({'Rego Validation', 'Expected Resource Types', 'Template'}).

This happened while the csv dataset builder was generating data using

hf://datasets/ineedhelpbrian/iac-eval-cloudformation/llm_desc_prompt_dataset_json_format_final.csv (at revision 08f914077370b433021752ca97d58bb1c7515e30)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              Resource: string
              Prompt: string
              Rego intent: string
              Difficulty: int64
              Reference output: string
              Intent: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 972
              to
              {'Prompt': Value('string'), 'Expected Resource Types': Value('string'), 'Rego Validation': Value('string'), 'Difficulty': Value('int64'), 'Template': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 4 new columns ({'Resource', 'Rego intent', 'Intent', 'Reference output'}) and 3 missing columns ({'Rego Validation', 'Expected Resource Types', 'Template'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/ineedhelpbrian/iac-eval-cloudformation/llm_desc_prompt_dataset_json_format_final.csv (at revision 08f914077370b433021752ca97d58bb1c7515e30)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Prompt
string
Expected Resource Types
string
Rego Validation
string
Difficulty
int64
Template
string
Create a CloudFormation template that establishes an AWS Service Catalog portfolio with comprehensive tagging capabilities and cross-account sharing functionality. The template should include a main portfolio resource with configurable display name, provider, and description, along with four separate tag options for de...
AWS::ServiceCatalog::Portfolio,AWS::ServiceCatalog::TagOption,AWS::ServiceCatalog::PortfolioShare
package cloudformation.servicecatalog # Check if each required resource type is present has_portfolio { input.Resources[r].Type == "AWS::ServiceCatalog::Portfolio" } has_tag_option { input.Resources[r].Type == "AWS::ServiceCatalog::TagOption" } has_portfolio_share { input.Resources[r].Type == "AWS::ServiceCatalog::Port...
3
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "CI/CD optimized AWS CloudFormation Sample Template for AWS Service Catalog Portfolio creation. ### Before deployment please make sure that all parameters are reviewed and updated according the specific use case. ### **WARNING** This template creates AW...
Create a CloudFormation template that establishes a complete AWS Service Catalog product with associated portfolio integration and tagging capabilities. The template should define a Service Catalog CloudFormation product with configurable metadata (name, description, owner, support details), associate it with an existi...
AWS::ServiceCatalog::CloudFormationProduct,AWS::ServiceCatalog::PortfolioProductAssociation,AWS::ServiceCatalog::TagOptionAssociation
package cloudformation.servicecatalog # Check if CloudFormation Product resource type is present has_cloudformation_product { input.Resources[r].Type == "AWS::ServiceCatalog::CloudFormationProduct" } # Check if Portfolio Product Association resource type is present has_portfolio_product_association { input.Resources[r]...
3
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "CI/CD optimized AWS CloudFormation Sample Template for AWS Service Catalog Product creation. ### Before deployment please make sure that all parameters are reviewed and updated according the specific use case. ### **WARNING** This template creates AWS ...
Create a CloudFormation template that builds a comprehensive CloudWatch Dashboard for monitoring NAT Gateway traffic using VPC Flow Logs. The dashboard should contain four CloudWatch Logs Insights widgets displaying different traffic analysis views: top instances sending traffic through the NAT gateway, bidirectional t...
AWS::CloudWatch::Dashboard
package cloudformation.cloudwatch # Check if CloudWatch Dashboard resource type is present has_cloudwatch_dashboard { input.Resources[r].Type == "AWS::CloudWatch::Dashboard" } # Allow if all required types are present allow { has_cloudwatch_dashboard }
4
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Creates a CloudWatch Dashboard with four CloudWatch Logs Insights log widgets that query VPC flow logs for NAT Gateway, related to https://repost.aws/knowledge-center/vpc-find-traffic-sources-nat-gateway", "Parameters": { "NatGatewayPrivate...
Create a CloudFormation template for a secure S3 bucket setup that includes a main storage bucket with cross-region replication, a dedicated access logging bucket, and a replica destination bucket. The template should enforce security best practices including server-side encryption with AES256, public access blocking, ...
AWS::S3::Bucket,AWS::S3::BucketPolicy,AWS::IAM::Role,AWS::IAM::RolePolicy
package cloudformation.s3_secure_setup # Check if S3 Bucket resource type is present has_s3_bucket { input.Resources[r].Type == "AWS::S3::Bucket" } # Check if S3 BucketPolicy resource type is present has_s3_bucket_policy { input.Resources[r].Type == "AWS::S3::BucketPolicy" } # Check if IAM Role resource type is present...
4
{ "Description": "A secure bucket that passes default security scanning checks. Includes a\nbucket to store replicas and an access log bucket. Server side encryption is\nenabled. Public access is disabled. The bucket policy requires secure\ntransport. Generated by CloudFormation Rain (rain build -b bucket bucket)....
Create a CloudFormation template that sets up an S3 bucket with cross-account access capabilities. The template should accept parameters for a unique bucket name and a publisher AWS account ID that will be granted access. The S3 bucket should have encryption enabled, versioning turned on, and public access blocked for ...
AWS::S3::Bucket,AWS::S3::BucketPolicy
package cloudformation.s3 # Check if S3 bucket resource type is present has_s3_bucket { input.Resources[r].Type == "AWS::S3::Bucket" } # Check if S3 bucket policy resource type is present has_s3_bucket_policy { input.Resources[r].Type == "AWS::S3::BucketPolicy" } # Allow if all required types are present allow { has_s3...
3
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Sample Template: Sample template which will create an s3 bucket with a bucket policy to enable cross account acccess. The template requires you to provide an AWS account ID to provide cross account access to, and a globally unique na...
Create a CloudFormation template that sets up an S3 bucket with Lambda trigger functionality. The template should include a parameterized bucket name, a Lambda function that gets triggered when objects are created in the S3 bucket, proper IAM permissions for the Lambda function to be invoked by S3 and write to CloudWat...
AWS::Lambda::Function,AWS::Lambda::Permission,AWS::IAM::Role,AWS::S3::Bucket
package cloudformation.s3_lambda_trigger # Check if each required resource type is present has_lambda_function { input.Resources[r].Type == "AWS::Lambda::Function" } has_lambda_permission { input.Resources[r].Type == "AWS::Lambda::Permission" } has_iam_role { input.Resources[r].Type == "AWS::IAM::Role" } has_s3_bucket ...
3
{ "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "NotificationBucket": { "Description": "S3 bucket name that is the trigger to lambda", "Type": "String" } }, "Resources": { "S3TriggerLambdaFunction": { "Type": "AWS::Lambda::Function"...
Create a CloudFormation template for a compliance-ready static website infrastructure using S3 and CloudFront. The template should include comprehensive logging, cross-region replication, encryption at rest, and security controls. Set up a main content bucket with associated log and replica buckets, configure CloudFron...
AWS::S3::Bucket,AWS::S3::BucketPolicy,AWS::IAM::Role,AWS::IAM::RolePolicy,AWS::CloudFront::Distribution,AWS::CloudFront::OriginAccessControl
package cloudformation.static_website # Check if each required resource type is present has_s3_bucket { input.Resources[r].Type == "AWS::S3::Bucket" } has_s3_bucket_policy { input.Resources[r].Type == "AWS::S3::BucketPolicy" } has_iam_role { input.Resources[r].Type == "AWS::IAM::Role" } has_iam_role_policy { input.Reso...
4
{ "Description": "Creates a static website using S3 and CloudFront that passes typical\ncompliance checks. Generated by CloudFormation Rain (rain build -b bucket\nwebsite). Adapt this template to your needs and thoruoughly test it before\nintroducing it in a production environment. **WARNING** This template will\n...
Create a CloudFormation template that deploys a production-ready EMR cluster with configurable applications (Spark or HBase), additional security groups for both master and core nodes, and proper IAM roles. The template should support S3-backed HBase storage, include parameters for instance types and counts, logging co...
AWS::EMR::Cluster,AWS::IAM::Role,AWS::IAM::InstanceProfile
package cloudformation.emr # Check if EMR Cluster resource type is present has_emr_cluster { input.Resources[r].Type == "AWS::EMR::Cluster" } # Check if IAM Role resource type is present has_iam_role { input.Resources[r].Type == "AWS::IAM::Role" } # Check if IAM Instance Profile resource type is present has_iam_instanc...
4
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Best Practice EMR Cluster for Spark or S3 backed Hbase", "Parameters": { "EMRClusterName": { "Description": "Name of the cluster", "Type": "String", "Default": "emrcluster" }, "KeyName": {...
Create a CloudFormation template for a best practice EMR cluster that supports both Spark and S3-backed HBase workloads with Ganglia monitoring. The template should include parameters for cluster configuration (name, instance types, core instance count, subnet, S3 locations for logs and data, EMR release version), use ...
AWS::EMR::Cluster,AWS::IAM::Role,AWS::IAM::InstanceProfile
package cloudformation.emr # Check if EMR cluster resource is present has_emr_cluster { input.Resources[r].Type == "AWS::EMR::Cluster" } # Check if IAM role resource is present has_iam_role { input.Resources[r].Type == "AWS::IAM::Role" } # Check if IAM instance profile resource is present has_iam_instance_profile { inp...
3
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Best Practice EMR Cluster for Spark or S3 backed Hbase", "Parameters": { "EMRClusterName": { "Description": "Name of the cluster", "Type": "String", "Default": "emrcluster" }, "KeyName": {...
Create a CloudFormation template that provisions a complete AWS Neptune graph database infrastructure with comprehensive monitoring and alerting capabilities. The template should include a Neptune cluster with a single instance, proper security groups, subnet groups, parameter groups for both cluster and instance level...
AWS::CloudWatch::Alarm,AWS::EC2::SecurityGroup,AWS::IAM::ManagedPolicy,AWS::IAM::Role,AWS::Neptune::DBCluster,AWS::Neptune::DBClusterParameterGroup,AWS::Neptune::DBInstance,AWS::Neptune::DBParameterGroup,AWS::Neptune::DBSubnetGroup,AWS::SNS::Subscription,AWS::SNS::Topic
package cloudformation.neptune # Check if each required resource type is present has_cloudwatch_alarm { input.Resources[r].Type == "AWS::CloudWatch::Alarm" } has_ec2_security_group { input.Resources[r].Type == "AWS::EC2::SecurityGroup" } has_iam_managed_policy { input.Resources[r].Type == "AWS::IAM::ManagedPolicy" } ha...
4
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation template to automatically provision AWS Neptune Graph Database through optimized CI/CD method with AWS CloudWatch and AWS SNS.", "Metadata": { "cfn-lint": { "config": { "regions": [ ...
Create a CloudFormation template that sets up an SNS topic with a subscription. The template should include parameters for the subscription endpoint and protocol, with the protocol defaulting to SQS and allowing common notification methods like HTTP, HTTPS, email, SMS, Lambda, and application endpoints. Include outputs...
AWS::SNS::Topic,AWS::SNS::Subscription
package cloudformation.sns # Check if SNS Topic resource type is present has_sns_topic { input.Resources[r].Type == "AWS::SNS::Topic" } # Check if SNS Subscription resource type is present has_sns_subscription { input.Resources[r].Type == "AWS::SNS::Subscription" } # Allow if all required types are present allow { has_...
2
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Best Practice SNS Topic", "Parameters": { "SubscriptionEndPoint": { "Description": "The endpoint that receives notifications from the Amazon SNS topic. The endpoint value depends on the protocol that you specify. This could be a...
Create a CloudFormation template that sets up AWS Config to monitor EC2 volumes for compliance. The template should include a configuration recorder that tracks EC2 volumes, a delivery channel that stores configuration snapshots in S3 every six hours and sends notifications via SNS, and two compliance rules: one that c...
AWS::Config::ConfigRule,AWS::Config::ConfigurationRecorder,AWS::Config::DeliveryChannel,AWS::EC2::Volume,AWS::IAM::Role,AWS::Lambda::Function,AWS::Lambda::Permission,AWS::S3::Bucket,AWS::SNS::Topic,AWS::SNS::TopicPolicy
package cloudformation.config # Check if each required resource type is present has_config_rule { input.Resources[r].Type == "AWS::Config::ConfigRule" } has_configuration_recorder { input.Resources[r].Type == "AWS::Config::ConfigurationRecorder" } has_delivery_channel { input.Resources[r].Type == "AWS::Config::Delivery...
4
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Sample Template Config: This template demonstrates the usage of AWS Config resources. **WARNING** You will be billed for the AWS resources used if you create a stack from this template.", "Metadata": { "License": "Apache-...
End of preview.

No dataset card yet

Downloads last month
14