Commit eedaa52
fix: Improve Terraform output parsing in deployment workflow
Fix "Invalid format" error caused by Terraform error messages containing
box drawing characters being written to GITHUB_OUTPUT.
Changes:
- Filter out box drawing characters (╷, │, ╵) from Terraform output
- Add validation for AWS User Pool ID format (regex check)
- Add validation for Client ID format
- Improve error handling with explicit Terraform init check
- Clearer fallback logic to GitHub Secrets
- Better logging for debugging
This prevents malformed output from breaking GitHub Actions file commands
while maintaining robust fallback to Secrets when Terraform outputs are
unavailable or invalid.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6b44863 commit eedaa52
1 file changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
93 | 111 | | |
| 112 | + | |
94 | 113 | | |
95 | | - | |
96 | 114 | | |
97 | 115 | | |
98 | 116 | | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
| |||
0 commit comments