Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awslabs/coldsnap
A command line interface for Amazon EBS snapshots
https://github.com/awslabs/coldsnap
amazon aws ebs snapshots
Last synced: about 1 month ago
JSON representation
A command line interface for Amazon EBS snapshots
- Host: GitHub
- URL: https://github.com/awslabs/coldsnap
- Owner: awslabs
- License: apache-2.0
- Created: 2020-07-21T20:35:15.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-10-23T03:42:34.000Z (about 2 months ago)
- Last Synced: 2024-10-31T11:57:10.872Z (about 1 month ago)
- Topics: amazon, aws, ebs, snapshots
- Language: Rust
- Homepage:
- Size: 502 KB
- Stars: 196
- Watchers: 18
- Forks: 24
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-cloud-sec - coldsnap - - A command line interface for Amazon EBS snapshots (Other Awesome Lists / General Utilities)
README
coldsnap
--------`coldsnap` is a command-line interface that uses the Amazon EBS direct APIs to upload and download snapshots.
It does not need to launch an EC2 instance or manage EBS volume attachments.
It can be used to simplify snapshot handling in an automated pipeline.## Usage
### Credentials
Coldsnap uses the same credential mechanisms as the `aws cli`.
For example, if you have credentials in `~/.aws/credentials`, these will be used.
You can specify the name of the profile to be used by adding `--profile profile-name`.You can also define environment variables, for example:
```
$ export AWS_ACCESS_KEY_ID=EXAMPLEAKIAIOSFODNN7
$ export AWS_SECRET_ACCESS_KEY=EXAMPLEKEYwJalrXUtnFEMI/K7MDENG/bPxRfiCY
$ export AWS_DEFAULT_REGION=us-west-2
```If the name of a profile is provided, then it will be used.
If not, then the default behavior of the AWS Rust SDK credential provider will be used.
[Here] is the description of the default behavior.[Here]: https://docs.rs/aws-config/latest/aws_config/default_provider/credentials/struct.DefaultCredentialsChain.html
### Upload
Upload a local file into an EBS snapshot:
```
$ coldsnap upload disk.img
```If you want to wait for the uploaded snapshot to be in "available" state, add `--wait`:
```
$ coldsnap upload --wait disk.img
```Alternately, you can use `coldsnap wait`, which offers more flexibility in terms of wait duration and behavior.
```
$ coldsnap wait snap-1234
```### Download
Download an EBS snapshot into a local file:
```
$ coldsnap download snap-1234 disk.img
```Run `coldsnap --help` to see more options.
## Installation
`coldsnap` can be installed using [`cargo`](https://rustup.rs/).
```
$ cargo install --locked coldsnap
```## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This project is licensed under the Apache-2.0 License.