Skip to content

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

Open
jacorbello wants to merge 3 commits intoCloud-Architects:developfrom
jacorbello:feature/cli-refactor
Open

Refactoring Cloudiscovery CLI to support [provider] [resource] format#177
jacorbello wants to merge 3 commits intoCloud-Architects:developfrom
jacorbello:feature/cli-refactor

Conversation

@jacorbello
Copy link
Copy Markdown

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
Copy Markdown
Member

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

@gentleadam
Copy link
Copy Markdown

Nice work! 👍🏻

@leandrodamascena leandrodamascena self-assigned this Feb 12, 2021
Copy link
Copy Markdown
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!

Comment thread cloudiscovery/__init__.py Outdated
sys.exit(1)

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

@leandrodamascena leandrodamascena Feb 12, 2021

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@jacorbello
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants