AWS AWSEC2 documentation change
Summary
Expanded documentation with detailed subscription steps, examples, and troubleshooting guidance
Security assessment
Adds operational guidance but does not introduce security features or address vulnerabilities
Diff
diff --git a/AWSEC2/latest/UserGuide/spot-data-feeds.md b/AWSEC2/latest/UserGuide/spot-data-feeds.md index df35f125b..80ca31203 100644 --- a//AWSEC2/latest/UserGuide/spot-data-feeds.md +++ b//AWSEC2/latest/UserGuide/spot-data-feeds.md @@ -87 +87,12 @@ If you update the ACL and remove the permissions for the AWS data feed account, -To subscribe to your data feed, use the [create-spot-datafeed-subscription](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-spot-datafeed-subscription.html) AWS CLI command. +You can subscribe to your Spot Instance data feed at any time. You can't complete this task using the Amazon EC2 console. + +If you get an error that the bucket does not have enough permissions, see the following article for troubleshooting information: [Troubleshoot the data feed for Spot Instances](https://repost.aws/knowledge-center/s3-data-feed-ec2-spot-instances). + +AWS CLI + + +###### To subscribe to your data feed + +Use the [create-spot-datafeed-subscription](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-spot-datafeed-subscription.html) command. + +To specify a bucket with a prefix, use the following example: @@ -92 +103 @@ To subscribe to your data feed, use the [create-spot-datafeed-subscription](http - [--prefix my-prefix] + --prefix my-prefix @@ -94 +105 @@ To subscribe to your data feed, use the [create-spot-datafeed-subscription](http -This following is example output. +To specify a bucket without a prefix, use the following example: @@ -97,8 +108,11 @@ This following is example output. - { - "SpotDatafeedSubscription": { - "OwnerId": "111122223333", - "Bucket": "amzn-s3-demo-bucket", - "Prefix": "my-prefix", - "State": "Active" - } - } + aws ec2 create-spot-datafeed-subscription \ + --bucket amzn-s3-demo-bucket + +PowerShell + + +###### To subscribe to your data feed + +Use the [New-EC2SpotDatafeedSubscription](https://docs.aws.amazon.com/powershell/latest/reference/items/New-EC2SpotDatafeedSubscription.html) cmdlet. + +To specify a bucket with a prefix, use the following example: @@ -106 +120,10 @@ This following is example output. -If you get an error that the bucket does not have enough permissions, see the following article for troubleshooting information: [Troubleshoot the data feed for Spot Instances](https://repost.aws/knowledge-center/s3-data-feed-ec2-spot-instances). + + New-EC2SpotDatafeedSubscription ` + -Bucket amzn-s3-demo-bucket ` + -Prefix my-prefix + +To specify a bucket without a prefix, use the following example: + + + New-EC2SpotDatafeedSubscription ` + -Bucket amzn-s3-demo-bucket @@ -134 +157,8 @@ The following is example output. -To delete your data feed, use the [delete-spot-datafeed-subscription](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/delete-spot-datafeed-subscription.html) command. +When you are finished with the Spot Instance data feed, you can delete it. + +AWS CLI + + +###### To delete your data feed + +Use the [delete-spot-datafeed-subscription](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/delete-spot-datafeed-subscription.html) command. @@ -138,0 +169,10 @@ To delete your data feed, use the [delete-spot-datafeed-subscription](https://aw +PowerShell + + +###### To delete your data feed + +Use the [Remove-EC2SpotDatafeedSubscription](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2SpotDatafeedSubscription.html) cmdlet. + + + Remove-EC2SpotDatafeedSubscription +