Skip to content

aminator should support a simple return of the AMI ID in STDOUT after successful amination #153

@kvick

Description

@kvick

When using aminator via scripts (e.g. Jenkins bash scripting) it's helpful to get the resultant AMI ID in STDOUT. Currently it is present, but buried in logging output.

The use case I have is I want to build automated acceptance tests, so I want to aminate a package, then launch an instance. The problem is that I don't have an easy way of getting the AMI ID to launch without parsing the logs or querying EC2, assuming I know the name (this is cumbersome).

I propose that aminator should so something like:

aminate -B ami-abcdefg --quiet
ami-123456

Where --quiet is whatever setting is needed to suppress console logging so we get only the successful AMI ID. If there's a failure, return a non-zero status and detailed STDERR output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions