CLI tool to manage AWS AMI and Marketplace
Project description
CLI for simple AWS AMIs management
Quick Start
Install with pip:
$ pip install shipami
$ shipami --help
Example: Publish AMI for AWS Marketplace
List available AMIs in your default region (eg. eu-west-1)
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin
Create a release based on this image in us-east-1 region
$ shipami --region us-east-1 release ami-00000000 1.0 --source-region eu-west-1
ami-000000aa
$ shipami --region us-east-1 list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo-1.0 1.0 ami-000000aa pending just now yes eu-west-1:ami-00000000
Manually share with AWS Marketplace account
$ shipami --region us-east-1 share ami-000000aa
$ shipami --region us-east-1 show ami-000000aa
id: ami-000000aa
name: foo-1.0
state: available
tags:
shipami:copied_from: eu-west-1:ami-00000000
shipami:managed: True
shipami:release: 1.0
devices mappings:
/dev/xvda 8Go type:gp2
shared with:
679593333241 (AWS MARKETPLACE) OK
Commands
You can get further help and usage instructions on any command with the --help option.
copy
$ shipami copy ami-00000000
ami-000000aa
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin eu-west-1:ami-000000aa
foo ami-000000aa pending just now yes eu-west-1:ami-00000000
delete
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin eu-west-1:ami-000000aa
foo ami-000000aa available 1 day ago yes eu-west-1:ami-00000000
$ shipami delete ami-000000aa
ami-000000aa
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin
list
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin
release
$ shipami release ami-00000000 1.0
ami-000000aa
$ shipami list
NAME RELEASE ID STATE CREATED MANAGED COPIED FROM COPIED TO
foo ami-00000000 available 5 days ago no origin eu-west-1:ami-000000aa
foo-1.0 1.0 ami-000000aa pending just now yes eu-west-1:ami-00000000
show
$ shipami show ami-000000aa
id: ami-000000aa
name: foo-1.0
state: available
tags:
shipami:copied_from: eu-west-1:ami-00000000
shipami:managed: True
shipami:release: 1.0
devices mappings:
/dev/xvda 8Go type:gp2
shared with:
012345678912
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shipami-0.0.1rc1.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for shipami-0.0.1rc1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b73c231a14746edd78e88c8c176f1295be34fdaaaf3a9db5ea51e7f87f2f15 |
|
MD5 | 97ea727ffeeb370161577ae1b5401094 |
|
BLAKE2b-256 | f57492d65b4cd305894bfe61de180e38b61a46107c788f7acbeb70a0bcb9b0a0 |