kishorerootly commited on
Commit
9ad5916
·
verified ·
1 Parent(s): 9b52274

Upload task_iam_role_policy.jsonl with huggingface_hub

Browse files
Files changed (1) hide show
  1. task_iam_role_policy.jsonl +1 -0
task_iam_role_policy.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"input": [{"role": "system", "content": "You are generating Terraform code. Create EXACTLY three files: main.tf, variables.tf, outputs.tf.\n\nRequirements:\n- Terraform >= 1.5\n- Provider: hashicorp/aws\n- Must work with LocalStack at http://localhost:4566\n Configure provider endpoints for iam, sts to http://localhost:4566 and set:\n skip_credentials_validation=true\n skip_metadata_api_check=true\n skip_requesting_account_id=true\n s3_use_path_style=true\n- Variables (ALL must have default values to avoid interactive prompts):\n region (string, default = \"us-east-1\")\n role_name (string)\n policy_name (string)\n- Create:\n 1 IAM Role with name = var.role_name\n Trust policy must allow EC2 service to assume the role (principal: ec2.amazonaws.com)\n 1 IAM Policy with name = var.policy_name\n Policy document should allow: s3:GetObject and s3:ListBucket on all resources\n 1 IAM Role Policy Attachment to attach the policy to the role\n- Tag all resources:\n project = \"sre-skills-bench\"\n task_id = \"task_iam_role_policy\"\n- Outputs:\n role_id\n role_arn\n policy_arn\n\nReturn ONLY code blocks, one per file, labeled with the filename."}], "ideal": "", "task_id": "task_iam_role_policy", "category": "iam", "difficulty": "intermediate", "metadata": {"provider": "hashicorp/aws", "localstack_compatible": true, "terraform_version": ">= 1.5", "expected_resources": ["role_count", "policy_count", "role_policy_attachment_count", "wiring"], "wiring_requirements": ["policy attached to role", "trust policy allows ec2 service"]}}