-
Notifications
You must be signed in to change notification settings - Fork 9.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
d/aws_ec2_instance_spot_price - add new data source #12504
Merged
Merged
Commits on Jul 13, 2020
-
d/aws_ec2_instance_spot_price - add new data source
Adds a data source to fetch the most recently published Spot Price value for a given EC2 instance type and availability zone. The value can be manipulated and fed into spot price parameters in other resources, allowing for dynamic adjusted of spot requests.
Configuration menu - View commit details
-
Copy full SHA for 21919ad - Browse repository at this point
Copy the full SHA 21919adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a7a60b - Browse repository at this point
Copy the full SHA 6a7a60bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37ad45d - Browse repository at this point
Copy the full SHA 37ad45dView commit details -
simplify DescribeSpotPriceHistory usage
since we are only interested in fetching the latest SpotPrice, we don't need to iterate over a series of requests, as we only ever need to fetch call's worth of data
Configuration menu - View commit details
-
Copy full SHA for 613c130 - Browse repository at this point
Copy the full SHA 613c130View commit details -
Configuration menu - View commit details
-
Copy full SHA for e354ef2 - Browse repository at this point
Copy the full SHA e354ef2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d1e0bd - Browse repository at this point
Copy the full SHA 4d1e0bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14ab44c - Browse repository at this point
Copy the full SHA 14ab44cView commit details -
Configuration menu - View commit details
-
Copy full SHA for be0353b - Browse repository at this point
Copy the full SHA be0353bView commit details -
Configuration menu - View commit details
-
Copy full SHA for df35b6f - Browse repository at this point
Copy the full SHA df35b6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce454d9 - Browse repository at this point
Copy the full SHA ce454d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00be40d - Browse repository at this point
Copy the full SHA 00be40dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 495c8e7 - Browse repository at this point
Copy the full SHA 495c8e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d92b6f - Browse repository at this point
Copy the full SHA 3d92b6fView commit details
Commits on Jul 14, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 2e91549 - Browse repository at this point
Copy the full SHA 2e91549View commit details -
support spot price data by solely filtering
add a test for sourcing an aws_ec2_spot_price data source using filter{} blocks exclusively. this commit also involves a rework of the DescribeSpotPriceHistory AWS API call, namely using the native SDK paging function; without this function, making a singular direct call to the DescribeSpotPriceHistory SDK function returned a response with an empty slice, but the underlying API call returned a response with a non-nil NextToken value. to support this, we simply use the DescribeSpotPriceHistoryPages unconditionally during reads, and add all found SpotPriceHistory objects to a slice.
Configuration menu - View commit details
-
Copy full SHA for f1ff164 - Browse repository at this point
Copy the full SHA f1ff164View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a5163a - Browse repository at this point
Copy the full SHA 4a5163aView commit details
Commits on Jul 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5a167da - Browse repository at this point
Copy the full SHA 5a167daView commit details
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.