Resource: aws_spot_datafeed_subscription

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.id
  prefix = "my_subdirectory"
}

Argument Reference

Attribute Reference

This resource exports no additional attributes.

Import

In Terraform v1.5.0 and later, use an import block to import a Spot Datafeed Subscription using the word spot-datafeed-subscription. For example:

import {
  to = aws_spot_datafeed_subscription.mysubscription
  id = "spot-datafeed-subscription"
}

Using terraform import, import a Spot Datafeed Subscription using the word spot-datafeed-subscription. For example:

% terraform import aws_spot_datafeed_subscription.mysubscription spot-datafeed-subscription