Git Product home page Git Product logo

Comments (2)

RanVaknin avatar RanVaknin commented on July 17, 2024

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 amiIdList anywhere. If I had to guess this is an internal error leaking. What Im guessing is missing from your code is the amiId parameter. Either specified in the template, or if you are using a fleet of type "instant" you can specify amiId as an override.

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,
Ran~

from aws-sdk-go.

github-actions avatar github-actions commented on July 17, 2024

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.

from aws-sdk-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.