Thalatta
Thalatta

Reputation: 4578

AWS: "ERROR: The request could not be satisfied."

I am trying to use curl to push my images of my Rails project to my AWS CloudFront distribution with a POST request. However I get the following error:

Here is how I made the request:

curl --data @general.png http://d2blda41rgubcs.cloudfront.net

And this is the error i get:

ERROR: The request could not be satisfied
This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.

I don't know if I need to create a 'Bucket' for my distribution. I also don't know where/if I can set up my distribution to allow this kind of approach to uploading Objects to my distribution.

Upvotes: 0

Views: 5242

Answers (1)

Damian Nikodem
Damian Nikodem

Reputation: 1289

Typically I have my cloudfront setup to serve the data in my s3 bucket ( and use a command called s3cmd to upload relevant data. )

Upvotes: 1

Related Questions