-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Failed to create fleet instance: InvalidParameterValue: Parameter 'amiIdList' cannot be empty. #5134
Comments
Hi @mrhello369 , Thank you for your patience. The code sample you attached is too large. Any chance you can provide a concise snippet that raises this error? I tried going through the ec2 model and write my own sample, but I did not see a parameter named input := &ec2.CreateFleetInput{
LaunchTemplateConfigs: []*ec2.FleetLaunchTemplateConfigRequest{{
LaunchTemplateSpecification: &ec2.FleetLaunchTemplateSpecificationRequest{
LaunchTemplateId: aws.String("<LaunchTemplateId>"),
},
Overrides: []*ec2.FleetLaunchTemplateOverridesRequest{{
ImageId: aws.String("override ImageId here"),
}},
}},
TargetCapacitySpecification: &ec2.TargetCapacitySpecificationRequest{
TotalTargetCapacity: aws.Int64(1),
},
Type: aws.String("instant"),
} Can you give this a try and let me know if this works? All the best, |
This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Describe the bug
I use the lib to create ec2 instance, it has the following error:
And I try to search this field in the lib, but I didn't find it, so I don;t know how to set it.
Expected Behavior
Create ec2 instance successful
Current Behavior
none
Reproduction Steps
ec2-test.tar.gz
1.Unzip the file.
2.Create one asg with on-demand instance.
3.go run main.go
Possible Solution
No response
Additional Information/Context
No response
SDK version used
github.com/aws/[email protected]
Environment details (Version of Go (
go version
)? OS name and version, etc.)go version go1.20.6 linux/amd64
The text was updated successfully, but these errors were encountered: