Skip to content

Commit 345ae10

Browse files
Copilotlgallard
andcommitted
Remove moved blocks causing migration conflicts
Co-authored-by: lgallard <6194359+lgallard@users.noreply.github.com>
1 parent 7fab3c6 commit 345ae10

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

main.tf

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
# Automatic migration support for upgrading from single plan to multiple plans
2-
# These moved blocks automatically handle the most common migration case:
3-
# - Migrating from a single plan (ab_plan[0]) to multiple plans with "default" key
4-
# - Migrating from single selection (ab_selection[0]) to plan selection with "default-selection" key
5-
#
6-
# To benefit from automatic migration:
7-
# 1. Structure your new config with plans = { default = { ... } }
8-
# 2. Name your selection "selection" in the new structure
9-
# 3. Run terraform plan/apply - resources will be moved automatically
10-
#
11-
# For other migration scenarios, see examples/migration_guide/
12-
13-
moved {
14-
from = aws_backup_plan.ab_plan[0]
15-
to = aws_backup_plan.ab_plans["default"]
16-
}
171

18-
moved {
19-
from = aws_backup_selection.ab_selection[0]
20-
to = aws_backup_selection.plan_selections["default-selection"]
21-
}
222

233
# AWS Backup vault
244
resource "aws_backup_vault" "ab_vault" {

0 commit comments

Comments
 (0)