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

[Docs][Permission] GCP medium permission set cannot pass sky check #4118

Open
cblmemo opened this issue Oct 18, 2024 · 0 comments
Open

[Docs][Permission] GCP medium permission set cannot pass sky check #4118

cblmemo opened this issue Oct 18, 2024 · 0 comments

Comments

@cblmemo
Copy link
Collaborator

cblmemo commented Oct 18, 2024

The medium permission detailed in our doc seems outdated. Current:

roles/browser
roles/compute.admin
roles/iam.serviceAccountAdmin
roles/iam.serviceAccountUser
roles/serviceusage.serviceUsageConsumer
roles/storage.admin
roles/iam.securityAdmin

However, when I tried this on a service account, I got:

$ sky check gcp
Checking credentials to enable clouds for SkyPilot.
  GCP: disabled                              
    Reason: The following permissions are not enabled for the current GCP identity (<service-account-email-address> [project_id=<project-id>]):
    {'serviceusage.services.enable'}
    For more details, visit: https://skypilot.readthedocs.io/en/latest/cloud-setup/cloud-permissions/gcp.html
No cloud is enabled. SkyPilot will not be able to run any task. Run `sky check` for more info.

When I manually change the roles/serviceusage.serviceUsageConsumer to Service Usage Admin, it works for me:

$ sky check gcp
Checking credentials to enable clouds for SkyPilot.
  GCP: enabled                              

To enable a cloud, follow the hints above and rerun: sky check 
If any problems remain, refer to detailed docs at: https://skypilot.readthedocs.io/en/latest/getting-started/installation.html

🎉 Enabled clouds 🎉
  ✔ GCP
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

1 participant