Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support multiple accounts #67

Open
lifeofguenter opened this issue Dec 12, 2017 · 2 comments
Open

support multiple accounts #67

lifeofguenter opened this issue Dec 12, 2017 · 2 comments

Comments

@lifeofguenter
Copy link

a cross check over multiple accounts would be great, maybe by allowing to specify multiple profile-names via cli-arg and then looping through those.

the region can be static as those ami's would be copies anyways?

@actionjack
Copy link

Just curious, is this because you share AMI's across accounts and you want to operate from a single list or would just running tool twice across separate accounts be doable?

@lifeofguenter
Copy link
Author

Yes, AMIs are shared across accounts so they can be managed centrally and independent.

Running the script multiple times would not help because I'd still have to somehow create a cross-check if an AMI-id is still being used.

E.g. I can not delete the AMI from SOURCE if DEST-A or DEST-B are still using it.

I created already a simple tool in PHP that will do that: https://github.com/NINEJKH/mamicleaner - e.g. it accepts multiple -p (= profile) args and will only delete images that are not being used in either of the profiles.

The first -p value assumes the SOURCE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants