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.
ec2-create-spot-datafeed-subscription --bucket
bucket [--prefix prefix]
| Name | Description | Required |
|---|---|---|
|
|
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 that is prepended to datafeed files. Type: String Default: None Example: --prefix spotdata_ |
No |
The command returns a table that contains the following information:
Request ID
Subscription Information
Amazon EC2 displays errors on stderr.
This example creates the data feed for the account.
PROMPT>ec2-create-spot-datafeed-subscription --bucket my-bucketDATAFEED 228492611028 my-bucket open