Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support single type EC2 Dedicated Hosts from MGN integration #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vrimkus
Copy link

@vrimkus vrimkus commented Oct 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant