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?
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:
client.put_object( Body=open(artefact, 'rb'), Bucket=bucket, Key=bucket_key )
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.
Cheers,
Phil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.