ec2-create-spot-datafeed-subscription

Description

Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account. For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.

Syntax

ec2-create-spot-datafeed-subscription --bucket bucket [--prefix prefix]

Options

NameDescriptionRequired

--bucket bucket

The Amazon S3 bucket in which to store the Spot Instance datafeed.

Type: String

Default: None

Constraints: Must be a valid bucket associated with your account.

Example: --bucket myBucket

Yes

--prefix bucket

Prefix that is prepended to datafeed files.

Type: String

Default: None

Example: --prefix spotdata_

No

Output

The command returns a table that contains the following information:

  • Request ID

  • Subscription Information

Amazon EC2 displays errors on stderr.

Examples

Example Request

This example creates the data feed for the account.

PROMPT> ec2-create-spot-datafeed-subscription --bucket my-bucket 
DATAFEED 228492611028 my-bucket open