Giter VIP home page Giter VIP logo

distami's People

Contributors

dsumsky avatar dsumsky-infor avatar movermeyer avatar msusta avatar pas256 avatar sursh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

distami's Issues

better separation of execution logic from CLI

At the moment the CLI handler is hosting most of the actual execution logic while being tied to the CLI input. It'd be nice if the logic got moved somewhere separately to better accept arguments from other inputs without the need to rewrite most of the cli.py code.

Add the AMI sharing between multiple accounts with tags kept

Hi,

Is it possible to add this new feature?
As this tool could let AMI be public, could it be available for AMI sharing between multiple accounts?

Besides, better to make it share or copy the AMI with the original tags,
As we know, the AMI ID is quite difficult to remember and to be tracked under the version control.
So I used "tags" to identify the version.

Thanks
Henry

return json

would it possible to insert a flag that allows json to return? i had assumed the ami image copied would be the same id, but it changes in each region. i like to automatically log the ami image, thereby making a interface to spin up an ami image by using an abstracted id that would look up the ami image by region.

Script seems to bomb when there's a root device

2016-08-16 02:35:12 [DEBUG] [distami.utils(44):get_ami] Found AMIs: [Image:ami-3616dc56]
Traceback (most recent call last):
  File "/usr/local/bin/distami", line 9, in <module>
    load_entry_point('distami==1.0.7', 'console_scripts', 'distami')()
  File "/Library/Python/2.7/site-packages/distami/cli.py", line 100, in run
    distami = Distami(args.ami_id, ami_region)
  File "/Library/Python/2.7/site-packages/distami/core.py", line 48, in __init__
    bdm = self._image.block_device_mapping[ami.root_device_name]
KeyError: u'/dev/sda1'

share option not working

There is most likely a bug in the implementation of sharing in CLI handler.

def copy(param_array):
---redacted---
    copied_ami_id = distami.copy_to_region(to_region)
    ami_cp = Distami(copied_ami_id, to_region)
---redacted---
    if args.accounts:
        distami.share_ami_with_accounts(args.accounts)

Here the copy() copies the original AMI to new AMI with copy_to_region and even creates a new Distami with name ami_cp for the new AMI ID, however the list line references again the distami object tied to original AMI ID. What's more there is no reference to sharing the snapshot.

Guess this should look like part about sharing in run() which handles the original AMI.

        if args.accounts:
            account_ids = args.accounts.split(',')
            distami.share_ami_with_accounts(account_ids)
            distami.share_snapshot_with_accounts(account_ids)

Will submit a patch later.

Add private mode

Add the ability to make AMIs and snapshots non-public - the opposite of what it does now.

The code to do this is already there, but not wired up in the CLI.

Add profile support

Currently, this only supports the default profile. Would be nice to specify an AWS profile credential

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.