github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/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-datafleet-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  ```
    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  }
    26  ```
    27  
    28  ## Argument Reference
    29  * `bucket` - (Required) The Amazon S3 bucket in which to store the Spot instance data feed.
    30  * `prefix` - (Optional) A prefix for the data feed file names.
    31  
    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  ```