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

Refactoring Cloudiscovery CLI to support [provider] [resource] format #177

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Refactoring Cloudiscovery CLI to support [provider] [resource] format #177

wants to merge 3 commits into from

Conversation

jacorbello
Copy link

The purpose of this PR is to refactor the CLI to support multiple cloud providers. The changes proposed here will provide benefits in the following manners:

  • The argparser has been updated to nest subparsers under cloud providers
    • (aws | az) (vpc | security | etc.)
  • Allows for future standardization of resource arguments (not part of this PR)
    • Instead of provider-specific resource calls, generalize them:
      • cloudiscovery aws network --vpc-id vpc-xxxxxxxx
      • cloudiscovery az network --vnet-name my-vnet

Note - This is a breaking change for any automated implementations of Cloudiscovery. Commands such as aws-vpc and similar are no longer supported in this refactor.

This is to be the first of a series of pull requests to begin enabling multi-cloud provider support.

@leandrodamascena
Copy link
Member

Hi @jacorbello! Thanks for this PR! I'll try to analyze it tomorrow, ok?! 🤟🤟😃😃

@gentleadam
Copy link

Nice work! 👍🏻

@leandrodamascena leandrodamascena self-assigned this Feb 12, 2021
Copy link
Member

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the version? So, I think it's fine to merge!

Great job!

@@ -41,7 +41,7 @@
print("Python 3.8 or newer is required", file=sys.stderr)
sys.exit(1)

__version__ = "2.4.4"
__version__ = "2.5.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you refactored the arguments and it break actual usage, I think it's make more sense to update to version 3.0.0.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes perfect sense! Just pushed the new version number out.

Copy link
Member

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@leandrodamascena
Copy link
Member

I need to check circleci build, I think it crashed. Checking now.

@jacorbello
Copy link
Author

I need to check circleci build, I think it crashed. Checking now.

Might have been the change in version number, I forgot to update the git tag as well. Just updated that and pushed the tag up. Maybe that'll help? 🤷

@leandrodamascena
Copy link
Member

I need to check circleci build, I think it crashed. Checking now.

Might have been the change in version number, I forgot to update the git tag as well. Just updated that and pushed the tag up. Maybe that'll help? 🤷

Hii.. I was full of work last week, but this week I'm focusing in cloudiscovery! Let me fix this PR to merge!

@jacorbello
Copy link
Author

Hey @leandrodamascena, just checking in. Anything I can do to help with this PR?

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

Successfully merging this pull request may close these issues.

None yet

3 participants