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

No support for Scope: Region #10

Open
michallipka opened this issue Mar 10, 2017 · 2 comments
Open

No support for Scope: Region #10

michallipka opened this issue Mar 10, 2017 · 2 comments

Comments

@michallipka
Copy link

michallipka commented Mar 10, 2017

EDIT: I just saw my issue is connected with #9

installed and run this app but it showed only running instances and no reserved (but I have some).
After debugging I found that it only picks my old, retired reservations.

<struct reserved_instances_id="xxxxxx", instance_type="m3.medium", availability_zone="us-west-2b", start=2015-10-12 13:28:45 UTC, end=2016-10-11 13:28:44 UTC, duration=31536000, usage_price=0.0, fixed_price=0.0, instance_count=1, product_description="Linux/UNIX (Amazon VPC)", state="retired", tags=[], instance_tenancy="dedicated", currency_code="USD", offering_type="No Upfront", recurring_charges=[#<struct frequency="Hourly", amount=0.053>]>

All new ones I have with scope Region but when I added filter I got 0 results.

reserved_instances = ec2.describe_reserved_instances({filters: [ { name: "scope", values: ["Region"], }, ], })

Digging down I found that gem aws-sdk is in version 2.0.48 which apparently does not support scope Region (it wasn't even in results - see above). I updated gem to 2.8.5 and got proper results (at least from describe_reserved_instances)

<struct Aws::EC2::Types::ReservedInstances reserved_instances_id="xxxxxxxxxx", instance_type="m3.medium", availability_zone="us-west-2b", start=2015-10-12 13:28:45 UTC, end=2016-10-11 13:28:44 UTC, duration=31536000, usage_price=0.0, fixed_price=0.0, instance_count=1, product_description="Linux/UNIX (Amazon VPC)", state="retired", tags=[], instance_tenancy="dedicated", currency_code="USD", offering_type="No Upfront", recurring_charges=[#<struct Aws::EC2::Types::RecurringCharge frequency="Hourly", amount=0.053>], offering_class="standard", scope="Availability Zone">

Of course it broke some other things.
I am not a programmer so I don't think I will be able to make it work.
Can you update your application or is it abandoned?

@jros2300
Copy link
Owner

Hi, the project is outdated, but now with the launch of instance size flexibility (https://aws.amazon.com/about-aws/whats-new/2017/03/amazon-ec2-reserved-instances-now-offer-instance-size-flexibility-helping-you-reduce-your-ec2-bill/) I think it doesn't make so much sense to continue working in this project.

@michallipka
Copy link
Author

Hi,
thank you for your reply. I think this tool may be useful to reveal instances that aren't covered by RI. Of course, due to recent changes, it needs some tweaking.
So it will be something like "reserved instances review". Functionality which is not available in AWS console.
There is tool that do this (https://pypi.python.org/pypi/check-reserved-instances) but it's not web based.

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