github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/spot_datafeed_subscription.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_spot_datafeed_subscription"
     4  sidebar_current: "docs-aws-resource-spot-datafeed-subscription"
     5  description: |-
     6    Provides a Spot Datafeed Subscription resource.
     7  ---
     8  
     9  # aws\_spot\_datafeed\_subscription
    10  
    11  -> **Note:** There is only a single subscription allowed per account.
    12  
    13  To help you understand the charges for your Spot instances, Amazon EC2 provides a data feed that describes your Spot instance usage and pricing.
    14  This data feed is sent to an Amazon S3 bucket that you specify when you subscribe to the data feed.
    15  
    16  ## Example Usage
    17  
    18  ```hcl
    19  resource "aws_s3_bucket" "default" {
    20    bucket = "tf-spot-datafeed"
    21  }
    22  
    23  resource "aws_spot_datafeed_subscription" "default" {
    24    bucket = "${aws_s3_bucket.default.bucket}"
    25    prefix = "my_subdirectory"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  * `bucket` - (Required) The Amazon S3 bucket in which to store the Spot instance data feed.
    31  * `prefix` - (Optional) Path of folder inside bucket to place spot pricing data.
    32  
    33  ## Import
    34  
    35  A Spot Datafeed Subscription can be imported using the word `spot-datafeed-subscription`, e.g.
    36  
    37  ```
    38  $ terraform import aws_spot_datafeed_subscription.mysubscription spot-datafeed-subscription
    39  ```