Advertisement
Guest User

Untitled

a guest
May 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # Source - Jam3 putting file artifacts into the bucket with metadata pertaining to the build information
  2. $ aws s3api put-object --bucket $BUCKETNAME --key $OBJECT --metadata "CommitHash=qwertyuiop1234567890,Date=20170523000000" --server-side-encryption AES256
  3. {
  4. "VersionId": "3DEn9T3Lh_oyUIx1jqj5w3j.DeaScjdG",
  5. "ETag": "\"d41d8cd9af00b2c4e980g998ecf8526e\"",
  6. "Expiration": "expiry-date=\"Sun, 25 Jun 2017 00:00:00 GMT\", rule-id=\"60day-rotation\"",
  7. "ServerSideEncryption": "AES256"
  8. }
  9.  
  10. # Destination - The Rackspace and AWS systems are getting the artifact from the bucket
  11. $ aws s3api get-object --bucket $BUCKETNAME --key $OBJECT
  12. {
  13. "AcceptRanges": "bytes",
  14. "ContentType": "binary/octet-stream",
  15. "LastModified": "Thu, 25 May 2017 22:11:17 GMT",
  16. "ContentLength": 0,
  17. "VersionId": "3DEn9D9Mh_gyUIx3jql5w3j.DexScjdG",
  18. "ETag": "\"d41d8cd98r00g201e9800998ecf8427e\"",
  19. "Expiration": "expiry-date=\"Sun, 25 Jun 2017 00:00:00 GMT\", rule-id=\"60day-rotation\"",
  20. "Metadata": {
  21. "date": "20170523000000",
  22. "commithash": "qwertyuiop1234567890"
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement