Skip to content

fix(installer): STACK_NAME not ENV_NAME + guard post-deploy pipes - #85

Merged
royosherove merged 1 commit into
mainfrom
fix/post-deploy-stack-name
Aug 16, 2026
Merged

fix(installer): STACK_NAME not ENV_NAME + guard post-deploy pipes#85
royosherove merged 1 commit into
mainfrom
fix/post-deploy-stack-name

Conversation

@royosherove

Copy link
Copy Markdown
Member

Two bugs caused exit code 254 after 'Stack created!' printed successfully:

  1. Wrong stack name: Post-deploy Cognito output block used $ENV_NAME (e.g. kirocrew-8-549) but the actual stack name is ${ENV_NAME}-stack (set at line 2560 as $STACK_NAME). aws cloudformation describe-stacks returned 254 (stack not found), pipefail propagated, set -e killed the script before show_complete ran — including the click-through token URL.

  2. Unguarded pipes with pipefail: aws ... | jq ... fails the whole pipeline if either side errors. Wrapped each fetch with || true and uses jq default // empty / // [] so partial output failures no longer abort the installer.

Symptom Roy hit:

✓ Stack created! (6m 29s)
✗ Installer failed (exit code 254)

Also: the KiroCrew click-through token URL in show_complete never printed because we exited before reaching it.

Two bugs caused exit code 254 after 'Stack created!' completed successfully:

1. **Wrong stack name**: Post-deploy Cognito output block used $ENV_NAME
   (e.g. 'kirocrew-8-549') instead of $STACK_NAME
   (e.g. 'kirocrew-8-549-stack'). aws cloudformation describe-stacks
   returned 254 (stack not found), pipefail propagated, set -e killed
   the script before show_complete ran.

2. **Unguarded pipes with pipefail**: 'aws ... | jq ...' fails the whole
   pipeline if either side errors. Wrapped each fetch with '|| true' and
   uses jq default '// empty' / '// []' so partial output failures no
   longer abort the installer.

Result: the credential display box now shows even if a specific output
is missing, and show_complete (which prints the click-through token
URL) runs to completion.
@royosherove
royosherove merged commit 1967afa into main Aug 16, 2026
4 checks passed
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