Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Source - Jam3 putting file artifacts into the bucket with metadata pertaining to the build information
- $ aws s3api put-object --bucket $BUCKETNAME --key $OBJECT --metadata "CommitHash=qwertyuiop1234567890,Date=20170523000000" --server-side-encryption AES256
- {
- "VersionId": "3DEn9T3Lh_oyUIx1jqj5w3j.DeaScjdG",
- "ETag": "\"d41d8cd9af00b2c4e980g998ecf8526e\"",
- "Expiration": "expiry-date=\"Sun, 25 Jun 2017 00:00:00 GMT\", rule-id=\"60day-rotation\"",
- "ServerSideEncryption": "AES256"
- }
- # Destination - The Rackspace and AWS systems are getting the artifact from the bucket
- $ aws s3api get-object --bucket $BUCKETNAME --key $OBJECT
- {
- "AcceptRanges": "bytes",
- "ContentType": "binary/octet-stream",
- "LastModified": "Thu, 25 May 2017 22:11:17 GMT",
- "ContentLength": 0,
- "VersionId": "3DEn9D9Mh_gyUIx3jql5w3j.DexScjdG",
- "ETag": "\"d41d8cd98r00g201e9800998ecf8427e\"",
- "Expiration": "expiry-date=\"Sun, 25 Jun 2017 00:00:00 GMT\", rule-id=\"60day-rotation\"",
- "Metadata": {
- "date": "20170523000000",
- "commithash": "qwertyuiop1234567890"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement