Skip to content

run_instance requires instance type enum which limits types depending on sdk version #1356

@ben-kugler

Description

@ben-kugler

Describe the feature

Allow usage of String instance type when calling run_instance instead of InstanceType enum.

Use Case

  1. The available instance types are limited to what the sdk version currently has access too. This seems like a very strange decision to limit access of instance types
  2. Rolling back code that previously upgraded sdk client could cause a poison pill due to a previously known instance type becoming unknown. This is very insidious as I imagine most aren't thinking about how these enums are tied to sdk versions.

Proposed Solution

Allow user to use a plan String instead of InstanceType enum when calling run_instance. I believe that InstanceType is translated to a string when making the request anyway, this doesn't seem very hard to add an additional field to all users to use a string value instance type.

Other Information

NA

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions