The Cloud Migration Factory on AWS solution is designed to coordinate and automate manual processes for large-scale migrations. This solution helps enterprises improve performance and prevents long cutover windows by providing an orchestration platform for migrating workloads to AWS at scale.
Issue
When using certain EC2 Dedicated Hosts (e.g. r5d.large), they are restricted to a single Instance Type. The side effect from this is that the ec2:DescribeHosts response for these hosts will not include InstanceFamily in the HostProperties.
Currently, the MGN lambda function assumes it will be able to resolve the InstanceFamily from the response, and will unfortunately fail when it is not present.
ERROR: Host Supported Instance Family does not match required
Description of changes:
This change includes logic to identify whether the ec2:DescribeHosts response contains the InstanceFamily, and if not, will instead use the InstanceType value to glean the instance family.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue When using certain EC2 Dedicated Hosts (e.g. r5d.large), they are restricted to a single Instance Type. The side effect from this is that the ec2:DescribeHosts response for these hosts will not include
InstanceFamily
in the HostProperties.Currently, the MGN lambda function assumes it will be able to resolve the InstanceFamily from the response, and will unfortunately fail when it is not present.
Description of changes: This change includes logic to identify whether the ec2:DescribeHosts response contains the
InstanceFamily
, and if not, will instead use theInstanceType
value to glean the instance family.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.