How to download a KMS encrypted S3 object with a specific version id?Getting specific version of file from S3 bucketDownloading an entire S3 bucket?AWS S3 CopyObject VersionAWS S3 - CORS OPTIONS Preflight throwing 400 Bad Request during DELETE w/ VersionIdAmazon S3 + CloudFront query for specific version of stored fileHow can I upload to S3 with CLI using server side encryption with customer provided keyHow to copy files from an encrypted S3 bucket to Google Cloud Storage?aws cli signature version 4generating a new object version-id in s3Download specific version of object stored on AWS S3 with PHP SDKDelete multiple AWS S3 objects with version id

Find last 3 digits of this monster number

How much character growth crosses the line into breaking the character

Greco-Roman egalitarianism

Can a significant change in incentives void an employment contract?

Do the concepts of IP address and network interface not belong to the same layer?

Has Darkwing Duck ever met Scrooge McDuck?

Can someone explain how this makes sense electrically?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

MAXDOP Settings for SQL Server 2014

We have a love-hate relationship

Do Legal Documents Require Signing In Standard Pen Colors?

Gibbs free energy in standard state vs. equilibrium

Is a model fitted to data or is data fitted to a model?

Proving a function is onto where f(x)=|x|.

How do I extrude a face to a single vertex

How do I repair my stair bannister?

My friend sent me a screenshot of a transaction hash, but when I search for it I find divergent data. What happened?

On a tidally locked planet, would time be quantized?

Why do IPv6 unique local addresses have to have a /48 prefix?

Can I sign legal documents with a smiley face?

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

Remove Expired Scratch Orgs From VSCode

How do ground effect vehicles perform turns?

Does the Mind Blank spell prevent the target from being frightened?



How to download a KMS encrypted S3 object with a specific version id?


Getting specific version of file from S3 bucketDownloading an entire S3 bucket?AWS S3 CopyObject VersionAWS S3 - CORS OPTIONS Preflight throwing 400 Bad Request during DELETE w/ VersionIdAmazon S3 + CloudFront query for specific version of stored fileHow can I upload to S3 with CLI using server side encryption with customer provided keyHow to copy files from an encrypted S3 bucket to Google Cloud Storage?aws cli signature version 4generating a new object version-id in s3Download specific version of object stored on AWS S3 with PHP SDKDelete multiple AWS S3 objects with version id













0















I am attempting to download a version of my object from my S3 bucket. What I have is KMS key id a.k.a --sse-kms-key-id bucket and file key as well as versionId. The command I am using is



aws s3 cp s3://bucket/file_path/file.ext ./ --sse aws:kms --sse-kms-key-id arn:aws:kms:us-west-2:******:key/******-****-****-****-******** --profile my-profile



But I am unable to find versionId support. Also if there is a way in s3api, that would be helpful.










share|improve this question
























  • Possible duplicate of Getting specific version of file from S3 bucket

    – Sébastien Stormacq
    Mar 21 at 14:10















0















I am attempting to download a version of my object from my S3 bucket. What I have is KMS key id a.k.a --sse-kms-key-id bucket and file key as well as versionId. The command I am using is



aws s3 cp s3://bucket/file_path/file.ext ./ --sse aws:kms --sse-kms-key-id arn:aws:kms:us-west-2:******:key/******-****-****-****-******** --profile my-profile



But I am unable to find versionId support. Also if there is a way in s3api, that would be helpful.










share|improve this question
























  • Possible duplicate of Getting specific version of file from S3 bucket

    – Sébastien Stormacq
    Mar 21 at 14:10













0












0








0








I am attempting to download a version of my object from my S3 bucket. What I have is KMS key id a.k.a --sse-kms-key-id bucket and file key as well as versionId. The command I am using is



aws s3 cp s3://bucket/file_path/file.ext ./ --sse aws:kms --sse-kms-key-id arn:aws:kms:us-west-2:******:key/******-****-****-****-******** --profile my-profile



But I am unable to find versionId support. Also if there is a way in s3api, that would be helpful.










share|improve this question
















I am attempting to download a version of my object from my S3 bucket. What I have is KMS key id a.k.a --sse-kms-key-id bucket and file key as well as versionId. The command I am using is



aws s3 cp s3://bucket/file_path/file.ext ./ --sse aws:kms --sse-kms-key-id arn:aws:kms:us-west-2:******:key/******-****-****-****-******** --profile my-profile



But I am unable to find versionId support. Also if there is a way in s3api, that would be helpful.







amazon-web-services amazon-s3 command-line-interface






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 14:09









Sébastien Stormacq

8,23322445




8,23322445










asked Mar 21 at 13:46









Mohib WasayMohib Wasay

250110




250110












  • Possible duplicate of Getting specific version of file from S3 bucket

    – Sébastien Stormacq
    Mar 21 at 14:10

















  • Possible duplicate of Getting specific version of file from S3 bucket

    – Sébastien Stormacq
    Mar 21 at 14:10
















Possible duplicate of Getting specific version of file from S3 bucket

– Sébastien Stormacq
Mar 21 at 14:10





Possible duplicate of Getting specific version of file from S3 bucket

– Sébastien Stormacq
Mar 21 at 14:10












1 Answer
1






active

oldest

votes


















0














The high level AWS CLI s3 cp command does not support object versioning. You need to use the lower level s3api get-object command to specify a specific version.



Examples of command are given in this answer : Getting specific version of file from S3 bucket






share|improve this answer























  • Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

    – Mohib Wasay
    Mar 21 at 14:29











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281896%2fhow-to-download-a-kms-encrypted-s3-object-with-a-specific-version-id%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The high level AWS CLI s3 cp command does not support object versioning. You need to use the lower level s3api get-object command to specify a specific version.



Examples of command are given in this answer : Getting specific version of file from S3 bucket






share|improve this answer























  • Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

    – Mohib Wasay
    Mar 21 at 14:29
















0














The high level AWS CLI s3 cp command does not support object versioning. You need to use the lower level s3api get-object command to specify a specific version.



Examples of command are given in this answer : Getting specific version of file from S3 bucket






share|improve this answer























  • Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

    – Mohib Wasay
    Mar 21 at 14:29














0












0








0







The high level AWS CLI s3 cp command does not support object versioning. You need to use the lower level s3api get-object command to specify a specific version.



Examples of command are given in this answer : Getting specific version of file from S3 bucket






share|improve this answer













The high level AWS CLI s3 cp command does not support object versioning. You need to use the lower level s3api get-object command to specify a specific version.



Examples of command are given in this answer : Getting specific version of file from S3 bucket







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 21 at 14:11









Sébastien StormacqSébastien Stormacq

8,23322445




8,23322445












  • Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

    – Mohib Wasay
    Mar 21 at 14:29


















  • Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

    – Mohib Wasay
    Mar 21 at 14:29

















Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

– Mohib Wasay
Mar 21 at 14:29






Thanks for the answer. The problem is that files are encrypted and stored with server side encryption aws:kms. And I am not able to pass KMS encryption key id to lower level cli commands. Do you have idea about that?

– Mohib Wasay
Mar 21 at 14:29




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281896%2fhow-to-download-a-kms-encrypted-s3-object-with-a-specific-version-id%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript