-
Notifications
You must be signed in to change notification settings - Fork 107
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
Collect AWS service catalog items #483
Conversation
@gtanzillo @gmcculloug @syncrou not sure if we should require the admin access? Or what permissions you would envision we would have. Also it looks like I can only see provisioned instances of what my account provisioned, I haven't found any admin view of all provisioned instances. |
b0b27ba
to
8c4cd99
Compare
@@ -68,6 +68,10 @@ def aws_cloud_formation | |||
@aws_cloud_formation ||= manager.connect(:service => :CloudFormation) | |||
end | |||
|
|||
def aws_service_catalog | |||
@aws_service_catalog = manager.connect(:service => :ServiceCatalog) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be @aws_service_catalog ||=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -342,4 +344,64 @@ def key_pairs | |||
) | |||
end | |||
end | |||
|
|||
def service_offerings | |||
collector.service_offerings.each do |service_offering| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the order of magnitude of the number of service offerings? Hundreds/thousands/etc...
Doing API calls in a loop over a collection sucks :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, but there'll be few of those. Only way to make it work nicely is multi-thread + targeted refresh (if possible)
8c4cd99
to
156183b
Compare
Link of service instance and offering. The record also contains a link to stack, which we do not have modeled yet.
Passign specs after VCR refresh
Hide warnings about service catalog unavailable, since service catalog is not officially supported.
c8ad34c
to
adf8dd7
Compare
4386a53
to
48f6d31
Compare
7cb47e8
to
5bafdb4
Compare
Some comments on commits Ladas/manageiq-providers-amazon@0f5223a~...5bafdb4 spec/models/manageiq/providers/amazon/aws_refresher_spec_common.rb
spec/vcr_cassettes/manageiq/providers/amazon/cloud_manager/refresher.yml
spec/vcr_cassettes/manageiq/providers/amazon/cloud_manager/refresher_inventory_object.yml
|
Checked commits Ladas/manageiq-providers-amazon@0f5223a~...5bafdb4 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/manageiq/providers/amazon/inventory/collector/cloud_manager.rb
spec/models/manageiq/providers/amazon/aws_refresher_spec_counts.rb
|
Collect AWS service catalog items.
For refresh it needs role:
ServiceCatalogAdminReadOnlyAccess
TODO:
Depends on: