Skip to content

feat: add IAM workflow validation and fix partial role ARN handling#40

Merged
Amertz08 merged 1 commit into
mainfrom
claude/iam-workflow-validation-fixes
May 14, 2026
Merged

feat: add IAM workflow validation and fix partial role ARN handling#40
Amertz08 merged 1 commit into
mainfrom
claude/iam-workflow-validation-fixes

Conversation

@Amertz08
Copy link
Copy Markdown
Owner

Summary

  • Added validate() to SpinUpEKSIAMInput (requires ClusterName, Environment, Team) and SpinDownEKSIAMInput (requires both role names); both IAM workflows now return NonRetryableApplicationError on invalid input, consistent with all other workflows
  • SpinUpInput.validate() now rejects the case where exactly one of ClusterRoleARN/NodeRoleARN is provided — previously this silently ignored the supplied ARN and created both roles from scratch
  • Renamed SpinUpIAMInput, SpinUpIAMOutput, and SpinDownIAMInput to SpinUpEKSIAMInput, SpinUpEKSIAMOutput, and SpinDownEKSIAMInput to make clear these are EKS-specific types

Test plan

  • go build ./... passes
  • Trigger SpinUpIAMWorkflow with empty ClusterName — fails immediately with non-retryable error
  • Trigger SpinDownIAMWorkflow with empty ClusterRoleName — fails immediately with non-retryable error
  • Trigger SpinUpWorkflow with only ClusterRoleARN set (no NodeRoleARN) — fails validation before any AWS calls

🤖 Generated with Claude Code

- Added validate() to SpinUpEKSIAMInput (requires ClusterName,
  Environment, Team) and SpinDownEKSIAMInput (requires both role names);
  both IAM workflows now return NonRetryableApplicationError on invalid input
- SpinUpInput.validate() now rejects the case where exactly one of
  ClusterRoleARN/NodeRoleARN is set, preventing silent role recreation
- Renamed SpinUpIAMInput/Output and SpinDownIAMInput to
  SpinUpEKSIAMInput/Output and SpinDownEKSIAMInput to reflect that
  these roles are EKS-specific

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Amertz08 Amertz08 merged commit c916781 into main May 14, 2026
1 check passed
@Amertz08 Amertz08 deleted the claude/iam-workflow-validation-fixes branch May 14, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant