Skip to content
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 17 commits into from
Jul 31, 2020

Commits on Jul 13, 2020

  1. 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.
    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    21919ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a7a60b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    37ad45d View commit details
    Browse the repository at this point in the history
  4. 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
    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    613c130 View commit details
    Browse the repository at this point in the history
  5. copypasta

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    e354ef2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4d1e0bd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    14ab44c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    be0353b View commit details
    Browse the repository at this point in the history
  9. rebase aws/provider.go

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    df35b6f View commit details
    Browse the repository at this point in the history
  10. fix up tests

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    ce454d9 View commit details
    Browse the repository at this point in the history
  11. lint and typo fixes

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    00be40d View commit details
    Browse the repository at this point in the history
  12. update docs

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    495c8e7 View commit details
    Browse the repository at this point in the history
  13. whitespace

    p0pr0ck5 committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    3d92b6f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Configuration menu
    Copy the full SHA
    2e91549 View commit details
    Browse the repository at this point in the history
  2. 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.
    p0pr0ck5 committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    f1ff164 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4a5163a View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2020

  1. Configuration menu
    Copy the full SHA
    5a167da View commit details
    Browse the repository at this point in the history