-
Notifications
You must be signed in to change notification settings - Fork 627
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
Error: InvalidFleetConfig The fleet configuration contains duplicate instance pools. #2904
Comments
update: this was the default configuration. I also tried deploying the module with multiple_runners. I believe the following code is failing and I have no idea what is going on. This is my first time working with spot instances so I really appreciate any help. Thanks let fleet;
try {
// see for spec https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
fleet = await ec2
.createFleet({
LaunchTemplateConfigs: [
{
LaunchTemplateSpecification: {
LaunchTemplateName: runnerParameters.launchTemplateName,
Version: '$Default',
},
Overrides: generateFleetOverrides(runnerParameters.subnets, runnerParameters.ec2instanceCriteria.instanceTypes, amiIdOverride),
},
],
SpotOptions: {
MaxTotalPrice: runnerParameters.ec2instanceCriteria.maxSpotPrice,
AllocationStrategy: runnerParameters.ec2instanceCriteria.instanceAllocationStrategy,
},
TargetCapacitySpecification: {
TotalTargetCapacity: numberOfRunners,
DefaultTargetCapacityType: runnerParameters.ec2instanceCriteria.targetCapacityType,
},
TagSpecifications: [
{
ResourceType: 'instance',
Tags: [
{ Key: 'ghr:Application', Value: 'github-action-runner' },
{ Key: 'Type', Value: runnerParameters.runnerType },
{ Key: 'Owner', Value: runnerParameters.runnerOwner },
],
},
],
Type: 'instant',
})
.promise();
}
catch (e) {
logger.warn('Create fleet request failed.', e);
throw e;
} |
yeah I figured it out from that exact post. in my test environment, i have multiple subnets in the same az. just providing a single private subnet resolved my problem. thanks! |
@npalm Maybe it'd be a good idea to highlight this requirement (configured subnets must reside in different AZs) in the |
I agree since I was able to figure it out by chance after several hours of reaearching on a different repo. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions. |
Just a heads-up: this can also occur (false/misleading positive) if one accidentally enters duplicate EC2 instance-types in the list-of-string supplied to this module. Lesson learned: wrapped it with the |
@IAXES You saved me what could have been hours of frustration!! ❤️ ❤️ ❤️ |
Helloo
Trying to deploy the module to my infrastructure and having some problems with the scale-up lambda.
Any idea why I might have an invalid fleet config? Thanks!
The text was updated successfully, but these errors were encountered: