ubx upgrade scans .iac files for deprecated resource types and proposes replacements. Two phases: fast mechanical phase (no AI), then optional AI phase.
Usage
Examples
Flags
| Flag | Description |
|---|---|
--dry-run | Show proposed diff without writing any files |
--yes | Apply all upgrades without confirmation prompt |
--check | Exit 1 if any upgrades are found; never writes (CI mode) |
Output
Mechanical Upgrade Mappings
Applied instantly without an AI call:| Deprecated | Current | Reason |
|---|---|---|
aws_s3_bucket | aws_s3_bucket_v2 | Renamed in AWS provider v4+ |
aws_rds_cluster_instance | aws_rds_cluster | Consolidated in v5+ |
aws_elasticache_cluster | aws_elasticache_replication_group | Preferred for HA |
kubernetes_deployment | kubernetes_deployment_v1 | API version update |
AI Phase
WhenUBX_AI_API_KEY is set, Claude is also consulted for additional upgrade suggestions against the full schema registry. Silently skipped if no key configured.
