-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8608 from hssyoo/validate-mv-cmd
Add S3 bucket validation to s3 mv
- Loading branch information
Showing
7 changed files
with
696 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "enhancement", | ||
"category": "``s3``", | ||
"description": "Add parameter to validate source and destination S3 URIs to the ``mv`` command." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Moves a local file or S3 object to another location locally or in S3. | ||
|
||
.. WARNING:: | ||
If you are using any type of access point ARNs or access point aliases | ||
in your S3 URIs, you must take extra care to make sure that your source | ||
and destination S3 URIs resolve to different underlying buckets. If the | ||
source and destination buckets are the same, the source file or object | ||
can be moved onto itself, which can result in accidental deletion of | ||
your source file or object. | ||
|
||
To verify that the source and destination buckets are not the same, | ||
use the ``--validate-same-s3-paths`` parameter, or set the environment | ||
variable ``AWS_CLI_S3_MV_VALIDATE_SAME_S3_PATHS`` to ``true``. |
Oops, something went wrong.