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

interactively/automatically enable required APIs #48

Open
black-snow opened this issue Oct 10, 2022 · 2 comments
Open

interactively/automatically enable required APIs #48

black-snow opened this issue Oct 10, 2022 · 2 comments

Comments

@black-snow
Copy link

Thanks for the tool, quite handy!

It'd be nice if instead of failing it'd just aks for permission and enable the required APIs by itself. I got prompted for three:

gcloud services enable serviceusage.googleapis.com --project=
gcloud services enable cloudresourcemanager.googleapis.com --project=
gcloud services enable iam.googleapis.com --project=

It's also missing from the README, I think.

@vinay-vgs
Copy link
Contributor

Thanks for your suggestion. Currently, gcpdiag functions as a non-interactive diagnostic tool that only reads data without making any modifications or changes. Therefore, using gcpdiag to enable APIs isn't possible at this time.

Thank you for pointing out the missing information from README file. We will work on it and update the README file.

@black-snow
Copy link
Author

That's some grave digging after two years :D

If it was possible at this time I wouldn't have to open an issue, right? 🙃
Sorry for being pointy.

I could imagine an --interactive flag, or better yet, interactive by default if an interactive terminal is dected and an optional --non-interactive.

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