-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Feat : EC2 manage spot options for instance tagging #31495
Merged
ewbankkit
merged 19 commits into
hashicorp:main
from
sousmangoosta:f-aws_ec2_instance-spot_option
Jun 6, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5f80695
Feat : EC2 manage spot options for instance tagging
sousmangoosta 01f868d
Doc : Add EC2 instance spot options documentation
sousmangoosta 8e296b9
Fix : Permit spot instances import
sousmangoosta 1f5c27f
Test : Add basic test for instance with spot mode
sousmangoosta 5b304c8
Merge branch 'main' into HEAD
ewbankkit 42decdb
Add CHANGELOG entry.
ewbankkit f500091
Use constants from AWS Go SDK.
ewbankkit fb04bcc
Add 'WaitSpotInstanceRequestFulfilled' and friends.
ewbankkit 26f306f
r/aws_spot_instance_request: Tidy up resource Create.
ewbankkit fd10764
r/aws_spot_instance_request: Tidy up resource Delete.
ewbankkit b96ad4c
Fix typo.
ewbankkit 77fe8cb
r/aws_spot_instance_request: Alphabetize attributes.
ewbankkit 21e0f04
r/aws_spot_instance_request: Remove instance attributes added for spo…
ewbankkit 78d3ab1
r/aws_instance: Tidy up setting 'instance_market_options'.
ewbankkit fd2b5bb
r/aws_instance: 'instance_market_options' is ForceNew.
ewbankkit b1dc702
r/aws_instance: 'instance_market_options.max_price' is Computed.
ewbankkit c93e4d9
Tweak recommendation for replacing 'aws_spot_instance_request'.
ewbankkit e4893c6
r/aws_instance: Remove defaults for 'instance_market_options'.
ewbankkit f962712
r/aws_instance: 'instance_market_options' itself is Computed.
ewbankkit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the market_type need to be Required here, and set as required with value
spot
in the documentation as we removed the Default value ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it doesn't, but the fact that
instance_market_options
and all it's sub-attributes areComputed
(so as to avoid diffs and resource replacement if the instance uses a launch template that specifiesinstance_market_options
) means thatinstance_market_options {}
in configuration is now ignored. That's why I had to change the new test case to add en explicitmarket_type = "spot"
.