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
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
add a comment |
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
Possible duplicate of Getting specific version of file from S3 bucket
– Sébastien Stormacq
Mar 21 at 14:10
add a comment |
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
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
amazon-web-services amazon-s3 command-line-interface
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Possible duplicate of Getting specific version of file from S3 bucket
– Sébastien Stormacq
Mar 21 at 14:10