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

Shareable Viz with GCP #1675

Closed
NeroOkwa opened this issue Dec 7, 2023 · 1 comment · Fixed by #1711
Closed

Shareable Viz with GCP #1675

NeroOkwa opened this issue Dec 7, 2023 · 1 comment · Fixed by #1711
Assignees
Labels
Design: Visual Design Issue: Feature Request Javascript Pull requests that update Javascript code Python Pull requests that update Python code

Comments

@NeroOkwa
Copy link
Contributor

NeroOkwa commented Dec 7, 2023

Description

This ticket is related to parent ticket #1116.
This will enable users to host, publish and share their Kedro-Viz pipeline visualisation with a URL on GCP object storage.

Context

We previously enabled users to publish and share versions of their Kedro-Viz pipeline visualisation with a URL on AWS S3 in #1116.

Enabling this feature will increase interoperability with the major cloud providers, providing Kedro-Viz access to non-technical stakeholders, and ultimately increasing adoption of Kedro-Viz.

Acceptance Criteria

A user is able to easily host and share a version of their Kedro-Viz pipeline visualisation with a URL via GCP by

  • Configuring their storage account and region.
  • Creating an access key.
  • In the CLI, adding their environment variable with the access key.
  • Running the kedro viz deploy command.
@NeroOkwa NeroOkwa added this to the Shareable URLs milestone Dec 7, 2023
@NeroOkwa NeroOkwa changed the title Shareable Viz with GCP [wip] Shareable Viz with GCP Dec 8, 2023
@rashidakanchwala rashidakanchwala moved this to Backlog in Kedro-Viz Jan 8, 2024
@rashidakanchwala rashidakanchwala moved this from Backlog to Todo in Kedro-Viz Jan 8, 2024
@rashidakanchwala rashidakanchwala moved this from Todo to In Progress in Kedro-Viz Jan 9, 2024
@rashidakanchwala rashidakanchwala moved this from In Progress to Todo in Kedro-Viz Jan 9, 2024
@NeroOkwa NeroOkwa moved this from Todo to In Progress in Kedro-Viz Jan 11, 2024
@jitu5
Copy link
Contributor

jitu5 commented Jan 11, 2024

Documentation on how we can approach hosting viz on GCP.

Connecting fsspec to GCP

Authorizing via Service Account Key



What users need to do - Create a project in GCP console

On GCP Console

  1. Create Service Account:
    a. Go to "IAM & Admin" > "Service Accounts."
    b. Click "Create Service Account."
    c. Provide a name and optional description.
  2. Grant Roles:
    a. Select the service account.
    b. Go to "Roles and Permissions."
    c. Assign "Storage Admin" or "Storage Object Admin" role for full access.
  3. Create Key:
    a. Go to the "Keys" tab.
    b. Click "Add Key" and choose "JSON" format.
    c. Download and securely store the key file.

On command line before running kedro viz deploy
Set GOOGLE_APPLICATION_CREDENTIALS to the downloaded key file's path.

Run deploy command
kedro viz deploy --platform=gcp --bucket-name=shareableviz

Note:

  • Region (Location) is not required in GCP.

Outstanding Design questions

  1. How to handle a condition where --region is not needed but for other provider it is mandatory

Outstanding Development issues

  1. Copied files are not retaining MIME types ( All file types are defaulted to application/octet-stream ).

Useful Links

@jitu5 jitu5 self-assigned this Jan 11, 2024
@rashidakanchwala rashidakanchwala added Python Pull requests that update Python code Javascript Pull requests that update Javascript code labels Jan 16, 2024
@ravi-kumar-pilla ravi-kumar-pilla self-assigned this Jan 23, 2024
@ravi-kumar-pilla ravi-kumar-pilla moved this from In Progress to In Review in Kedro-Viz Jan 25, 2024
@ravi-kumar-pilla ravi-kumar-pilla moved this from In Review to Done in Kedro-Viz Feb 15, 2024
@rashidakanchwala rashidakanchwala moved this from Done to In Progress in Kedro-Viz Feb 19, 2024
@rashidakanchwala rashidakanchwala moved this from In Progress to In Review in Kedro-Viz Feb 19, 2024
@ravi-kumar-pilla ravi-kumar-pilla moved this from In Review to Done in Kedro-Viz Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design: Visual Design Issue: Feature Request Javascript Pull requests that update Javascript code Python Pull requests that update Python code
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants