I want to create a spot-datafeed-subscription with the documentation on Track your Spot Instance costs by subscribing to a data feed - Amazon Elastic Compute Cloud.
I am kind of lost in how I have to configure my s3 bucket in order to have the subscription work.
The suggestions from Trying to create AWS spot datafeed, getting error: InaccessibleStorageLocation - Stack Overflowdid not got me to my goal.
When I type in the command:
aws ec2 create-spot-datafeed-subscription --bucket my-bucket
I always get:
An error occurred (InaccessibleStorageLocation) when calling the CreateSpotDatafeedSubscription operation: The specified bucket does not exist or does not have enough permissions
However,
aws ec2 create-spot-datafeed-subscription --bucket my-bucket --dry-run
results in
An error occurred (DryRunOperation) when calling the CreateSpotDatafeedSubscription operation: Request would have succeeded, but DryRun flag is set.