Conversation
- Add init command to generate config and job definition from existing AWS Batch definition - Extract code into separate files: config, diff, init, json, register, render - Strip AWS-managed fields from remote side in diff to avoid false positives - Skip registration when no changes detected (like ecspresso) - Add normalizeRemoteDefinition helper and tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- status: show latest active revision info (name, ARN, revision, image, resources) - run: submit a job via SubmitJob with --job-queue, --parameter, --wait support Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename skipPascalKeys to skipConvertKeys and use case-insensitive lookup so init correctly preserves user-defined tag/parameter keys from PascalCase AWS responses - Replace unreliable JSON string comparison in register skip logic with reflect.DeepEqual - Add TestWalkMap_ToCamelCase_SkipConvertKeys test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Local validation without AWS calls, useful for CI: - Template rendering and structure validation - Required fields (jobDefinitionName, type, image, VCPU/MEMORY) - Fargate constraints (executionRoleArn, valid vCPU/memory combos) - Environment variable name validation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
batcha.ymlandjob-definition.jsonfrom an existing AWS Batch job definitionSubmitJobwith--job-queue,--parameter,--waitsupportAlso includes:
batcha.gointo per-command files (ecspresso pattern)normalizeRemoteDefinitionfor cleaner diff/register comparison (strips AWS-managed fields)skipConvertKeyscase-insensitive matching fortoCamelCasedirectionTest plan
go test -race ./...passes (35 tests including Fargate resource validation)golangci-lint run ./...— 0 issuesbatcha verify --config batcha.ymlworks locallybatcha status --config batcha.ymlshows active definition infobatcha run --config batcha.yml --job-queue <queue>submits a jobbatcha init --job-definition-name <name>generates config files🤖 Generated with Claude Code