Good AI Task

AI compatibility

AI can draft the refactor, but a senior engineer must own the migration before it touches prod.

Possible with caveats

Workable, but read the conditions.

Average across 1 submission.

62
avg / 100

The honest read

AI can produce a solid first-pass refactor—modular Terraform or CloudFormation, variable externalization, secrets management scaffolding—but the 2,000-line script almost certainly contains environment-specific assumptions, implicit ordering dependencies, and undocumented business logic that require a human engineer to validate before anything touches production. The migration guide and rollback procedures are generatable but will need expert review to be trustworthy.

Aggregated across 1 submission.

The five dimensions

Repeatability

Medium

The structural patterns—modularizing Bash into Terraform/CloudFormation, externalizing variables, adding error handling—are well-understood and repeatable. However, every 2,000-line script has unique implicit logic, so each instance requires fresh judgment about what the original code actually does.

Ambiguity Tolerance

Low

Success criteria sound clear (idempotency, rollback, dry-run) but are deeply ambiguous in practice: what counts as correct rollback behavior, which secrets backend to use, and whether the refactored code is functionally equivalent to the original all require human validation against a live environment.

Data & Tool Availability

Medium

The agent needs the full 2,000-line script, knowledge of the target AWS account topology, existing secrets management setup, and any environment-specific naming conventions—most of which are unlikely to be fully provided upfront. Without them, the output will contain placeholders and assumptions.

Error Cost

High

A subtly wrong IaC refactor applied to multi-region production infrastructure (EC2, RDS, CloudFront) can cause data loss, outages, or security regressions. Even with dry-run capabilities, a flawed rollback procedure could make a bad deployment unrecoverable.

Human Judgment Required

High

Deciding which hardcoded values are environment-specific vs. intentional constants, how to sequence a live migration without downtime, and whether the rollback logic is actually safe all require experienced infrastructure judgment that AI cannot reliably supply from code alone.

What an agent would need

  • Full text of the 2,000-line Bash script with inline comments or documentation
  • Description of the target AWS account structure, regions, and existing resource naming conventions
  • Specification of the preferred IaC tool (Terraform vs. CloudFormation) and secrets backend (SSM, Secrets Manager, Vault)
  • A senior infrastructure engineer to review, test in a staging environment, and sign off before production migration
  • Access to or documentation of any CI/CD pipelines that currently invoke the Bash script

Best-matched agent type

Code Agent

The kind of agent this work would call for if it were a fit. For this task, it isn't.

Run your own fit check

Get a calibrated read on your specific task in under a minute.

Check a task