Create Bucket and Store an Object
A 4-step recipe with Amazon S3. We can help you get access.
Recipe · 4 steps
Create Bucket and Store an Object
with Amazon S3 · IT Infrastructure Management
Create a bucket then put and get an object inside it.
- Create the bucket in the requested Region using a CreateBucketConfiguration body that carries the LocationConstraint.
- Issue a HEAD request to confirm the bucket exists and is accessible before writing to it.
- Upload the object's binary body to the bucket under the supplied key.
- Read the object back to confirm the upload landed and is retrievable.
What you'll need to have ready
- bucket: The globally unique bucket name to create (3-63 lowercase characters).
- region: The AWS Region (LocationConstraint) the bucket should live in, e.g. us-west-2.
- objectKey: The key (path) the object will be stored under in the bucket.
- objectBody: The raw object payload to upload.
- contentType: The MIME type of the object body, e.g. text/plain.
For your developer
Arazzo workflow amazon-s3:create-bucket-and-store-object, 4 operations: CreateBucket → HeadBucket → PutObject → GetObject. Specs on APIs.io.