Skip to content

Terraform module for migrating an application from an old instance to a newer version

License

Notifications You must be signed in to change notification settings

Winter-py/terraform-packer-ec2-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process to migrate a customer instance from Windows Server 2012 R2, Windows Server 2016, Windows Server 2019 to Windows Server 2022. The process involves the following steps

  • Backing up the old instance (Database/IIS/Nginx)
  • Creating a new AMI using packer with all requird tools and applications
  • Restoring the backed up data onto a new server AMI
  • Creating the new instance with the old Elastic IP, tags, Instance type

Packer Inputs

Syntax Description Type Required
Region The AWS region for the AMI Build String Yes
Name Application or Server name String Yes
Source Source of backup, This could be a S3 bucket or a Network Location String Yes