-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for launching Spot instances (#85)
* Changed year default format for tag value message * Added new SpotOrOnDemand question to simple-ec2 * Refactored Capacity Type question and included capacity type in launch table * Added and modified tests to test the new CapacityType question * Capacity Question formatting * Added struct for capacity type terms * Correcting PR issues due Capacity question * PR changes to restructure methods * Created functions for creating and deleting Launch Templates. Added these methods into flow on creating a spot instance * Created mocks and tests for testing creating and deleting Launch Templates * Addressed issues to Creating and Deleting launch templates from PR. Fixed issues with Launch Template tests as well * Added CreateFleet method. Restructured LaunchTemplate testing methods to use an existing mock method. * Refactored tests for creating and deleting launch templates * Formatted the CLI output when a Spot instance is created * Created tests for using CreateFleet to create a Spot instance * Added security groups and subnet to launch template allowing spot instances to be connectable. Also fixed bug so launch templates can create spot instances. * Configured spot instances to include VPC, subnet, security groups, EBS configuration, tags, auto-termination, and other configurations * Revised duplicate code with data configuration struct * Refactored Request Instance configuration struct * Added real time pricing for spot and onDemand instances for Capacity type question * Update pkg/ec2helper/ec2helper.go Co-authored-by: Steve Nay <265958+snay2@users.noreply.github.com> * Update pkg/question/question.go Co-authored-by: Steve Nay <265958+snay2@users.noreply.github.com> Co-authored-by: Burris <ggburris@bcd0741c1a87.ant.amazon.com> Co-authored-by: Steve Nay <265958+snay2@users.noreply.github.com>
- Loading branch information
1 parent
8b9e8ae
commit 20ee196
Showing
11 changed files
with
444 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.