Pipelines: what is the 'key' parameter of the s3.put_object() method?

I am happily configuring Pipelines, but have stumbled across a problem.

I have been following this article and am using this script to configure the deployment. However, I don't know what the third parameter of the put_object() method is. The Boto docs don't really explain. Can anyone illuminate my mind?

1 answer

0 vote

Hi Mark,

This resource, http://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.put_object, says that the Key is:

Key (string) -- [REQUIRED] Object key for which the PUT operation was initiated.

And according to, http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html, an "Object Key" is:

When you create an object, you specify the key name, which uniquely identifies the object in the bucket.

My guess is that:

            Body=open(artefact, 'rb'),

is creating data in the S3 bucket specified by 'bucket', with an identifier (or Key) 'bucket_key', and value (or Body) 'artefact'. 

I haven't used the boto library for S3, so I cannot confirm this is correct. But, it looks like a good point to continue your investigation. smile



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,936 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you