Set up GX Cloud
To get the most out of GX Cloud, you'll need to request a GX Cloud Beta account, generate and record access tokens, set environment variables, and then install and start the GX Cloud agent.
Request a GX Cloud Beta account
-
Go to the GX Cloud Beta sign-up page.
-
Complete the sign-up form and then click Submit.
-
If you're invited to view a GX Cloud demonstration, click Schedule a time to connect here in the confirmation email to schedule a time to meet with a Great Expectations (GX) representative. After your meeting you'll be sent an email invitation to join your GX Cloud organization.
-
In your GX Cloud email invitation, click click here to set your password and sign in.
-
Enter your email address and password, and then click Continue to GX Cloud. Alternatively, click Log in with Google and use your Google credentials to access GX Cloud.
Prepare your environment
-
Download and install Python. See Active Python Releases.
-
Download and install pip. See the pip documentation.
-
Download and install Docker. See Get Docker.
Get your user access token and organization ID
You'll need your user access token and organization ID to set your environment variables. Don't commit your access tokens to your version control software.
-
In GX Cloud, click Settings > Tokens.
-
In the Access tokens pane, click Create user access token.
-
Complete the following fields:
-
Token name - Enter a name for the token that will help you quickly identify it.
-
Role - Select Admin. For more information about the available roles, click Information (?) .
-
-
Click Create.
-
Copy and then paste the user access token into a temporary file. The token can't be retrieved after you close the dialog.
-
Click Close.
-
Copy the value in the Organization ID field into the temporary file with your user access token and then save the file.
GX recommends deleting the temporary file after you set the environment variables.
Set the environment variables and start the GX Cloud agent
Environment variables securely store your GX Cloud access credentials. The GX Cloud agent runs open source GX code in GX Cloud, and it allows you to securely access your data without connecting to it or interacting with it directly.
Start the Docker Engine.
-
Run the following code to set the
GX_CLOUD_ACCESS_TOKEN
andGX_CLOUD_ORGANIZATION_ID
environment variables, install GX Cloud and its dependencies, and start the GX Cloud agent:Terminal inputdocker run --rm -e GX_CLOUD_ACCESS_TOKEN="<user_access_token>" -e GX_CLOUD_ORGANIZATION_ID="<organization_id>" greatexpectations/agent
Replace
user_access_token
andorganization_id
with the values you copied previously. -
Optional. If you created a temporary file to record your user access token and Organization ID, delete it.
-
Optional. Run
docker ps
or open Docker Desktop to confirm the agent is running.If you stop the GX Cloud agent, close the terminal, and open a new terminal you'll need to set the environment variables again.
To edit an environment variable, stop the GX Cloud agent, edit the environment variable, save the change, and then restart the GX Cloud agent.