Skip to content

fix: mpg_cluster Read uses list instead of status#4

Merged
joshpollara merged 1 commit intomainfrom
fix/mpg-cluster-read-uses-list
Mar 19, 2026
Merged

fix: mpg_cluster Read uses list instead of status#4
joshpollara merged 1 commit intomainfrom
fix/mpg-cluster-read-uses-list

Conversation

@joshpollara
Copy link
Member

Summary

  • flyctl mpg status <name> requires the cluster ID, not the name — so Read and import always fail
  • Switch to flyctl mpg list and find by name, matching the pattern postgres_cluster already uses

Test plan

  • go test ./... passes
  • tofu import fly_mpg_cluster.this terrateam-stategraph-db-production succeeds

🤖 Generated with Claude Code

`flyctl mpg status <name>` doesn't work — it requires the cluster ID.
Switch Read and post-create read-back to use `flyctl mpg list` and
find the cluster by name, matching the pattern used by postgres_cluster.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joshpollara joshpollara merged commit 1a9ce4b into main Mar 19, 2026
3 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