frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: AWS create_bucket API is BAD

1•furkansahin•6h ago
This post is created to show the best example of a bad API design. AWS S3 is probably one of the most used services globally. Say you want to create a bucket in us-east-2, the way to do it is basically to send `us-east-2` as a location_constraint as part of your `create_bucket` payload. You want to do the same for `us-east-1`? You cannot send it as part of `location_constraint`, it will fail with the following message!

Aws::S3::Errors::InvalidLocationConstraint: The specified location-constraint is not valid

You must not send anything to get it in `us-east-1`.

Source: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBu...

Comments

QuinnyPig•2h ago
Fun fact, originally S3 had the Standard Region. This is an artifact of that early decision