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

GCP connector #1

Open
Endriuz1805 opened this issue Jul 27, 2021 · 4 comments
Open

GCP connector #1

Endriuz1805 opened this issue Jul 27, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@Endriuz1805
Copy link

Hi,
I like your solution for Azure CMDB.
Is it possible to add a connector for GCP as well?

@gcaglio
Copy link
Owner

gcaglio commented Jul 27, 2021

Hi! thank you very much for your interest. :)
Actually i didn't have a GCP account. If you're interested and (i suppose) you have a GCP account, could you send me anonimized (without any information about your infrastructure) command and output ?

As you see from my scripts, i execute cli commands and parse the json output.
Does Gcp cli work in a similar way ?

We could try to start with some minimal support (eg: virtual machines) for GCP.

@gcaglio gcaglio self-assigned this Jul 27, 2021
@gcaglio gcaglio added the enhancement New feature or request label Jul 27, 2021
@gcaglio
Copy link
Owner

gcaglio commented Jul 29, 2021

Hi, thanks to the GCP free tier i've added a minimal support for GCP projects and vms in projects, with their relation file.
I will work on vm-disk and businessapplication-vm as soon as i understand how tagging work on GCP.

if you want to help me developing other modules for you and for the community, i kindly need the output of
gcloud list --format=json

many thanks in advance.
regards,

@Endriuz1805
Copy link
Author

Hi, i am glad to help you out.
The command that you listed is not working.
Can you please let me know what output do you need?

@gcaglio
Copy link
Owner

gcaglio commented Jul 29, 2021

hi! thank you very much!
That was an example. I use the gcloud cli commands to obtain information about instances.
If you need some information about installing the GCLOUD cli please refert to https://cloud.google.com/sdk/gcloud.

After you've setup the cli, you could run, for example, to have a list of the virtual machines :

gcloud compute instances list --format=json
I imagine you've also other gcp services, like api, kubernetes, databases and so on, so, to start from the services you wish to see supported, i kindly ask you what you want to be supported.
At the documentation reference : https://cloud.google.com/sdk/gcloud/reference. you could find all the Google Cloud supported services by the cli command line.

You can start telling me what you're interested in (composer, firebase, pubsub, and so on...), and i will try to add support for that services for you and for the community.

For example, if you want me to support memcache objects, you could run (from the documentation) :

gcloud memcache instances list --format=json

and send me the output in private message.
Many thanks.

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

No branches or pull requests

2 participants