mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-16 01:00:22 -04:00
Fixes: #4922 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSSpotDatafeedSubscription_' ==> Checking that code complies with gofmt requirements... /Users/stacko/Code/go/bin/stringer go generate $(go list ./... | grep -v /terraform/vendor/) 2016/08/24 10:46:23 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSSpotDatafeedSubscription_ -timeout 120m === RUN TestAccAWSSpotDatafeedSubscription_importBasic --- PASS: TestAccAWSSpotDatafeedSubscription_importBasic (56.31s) === RUN TestAccAWSSpotDatafeedSubscription_basic --- PASS: TestAccAWSSpotDatafeedSubscription_basic (56.77s) === RUN TestAccAWSSpotDatafeedSubscription_disappears --- PASS: TestAccAWSSpotDatafeedSubscription_disappears (56.79s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 169.893s ```
1.1 KiB
1.1 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_spot_datafeed_subscription | docs-aws-resource-spot-datafleet-subscription | Provides a Spot Datafeed Subscription resource. |
aws_spot_datafeed_subscription
-> Note: There is only a single subscription allowed per account.
To help you understand the charges for your Spot instances, Amazon EC2 provides a data feed that describes your Spot instance usage and pricing. This data feed is sent to an Amazon S3 bucket that you specify when you subscribe to the data feed.
Example Usage
resource "aws_s3_bucket" "default" {
bucket = "tf-spot-datafeed"
}
resource "aws_spot_datafeed_subscription" "default" {
bucket = "${aws_s3_bucket.default.bucket}"
}
Argument Reference
bucket- (Required) The Amazon S3 bucket in which to store the Spot instance data feed.prefix- (Optional) A prefix for the data feed file names.
Import
A Spot Datafeed Subscription can be imported using the word spot-datafeed-subscription, e.g.
$ terraform import aws_spot_datafeed_subscription.mysubscription spot-datafeed-subscription