| Did this page help you? Yes No Tell us about it... |
Creates the data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account. For more information about Spot Instances, go to Spot Instances in the Amazon Elastic Compute Cloud User Guide.
The short version of this command is ec2addsds.
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: -b myBucket |
Yes |
|
|
Prefix that is prepended to datafeed files. Type: String Default: None Example: -p spotdata_ |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
SPOTDATAFEEDSUBSCRIPTION identifier
Owner's AWS account ID
Bucket name
Prefix
State (Active, Inactive)
Amazon EC2 command line tools display errors on stderr.
This example creates the data feed for the account.
PROMPT>ec2-create-spot-datafeed-subscription -b myBucket -p spotdata_SPOTDATAFEEDSUBSCRIPTION 111122223333 myBucket spotdata_ Active