Skip to content

Commit

Permalink
Add moved blocks for renamed resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Jul 11, 2024
1 parent 65c36ca commit e0412e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform-post-packer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ data "aws_ami_ids" "historical_amis_x86_64" {
}
}

moved {
from = aws_ami_ids.historical_amis
to = aws_ami_ids.historical_amis_x86_64
}

# Assign launch permissions to the x86-64 AMIs
module "ami_launch_permission_x86_64" {
# Really we only want the var.recent_ami_count most recent AMIs, but
Expand All @@ -111,3 +116,8 @@ module "ami_launch_permission_x86_64" {
ami_id = each.value
extraorg_account_ids = var.extraorg_account_ids
}

moved {
from = module.ami_launch_permission
to = module.ami_launch_permission_x86_64
}

0 comments on commit e0412e7

Please sign in to comment.