This page discusses how to provision a public IP Looker (Google Cloud core) instance.
Before you begin
- In the Google Cloud console, on the project selector page, create a Google Cloud project or navigate to an existing one.
- Enable the Looker API for your project in the Google Cloud console. When enabling the API, you may need to refresh the console page to confirm that the API has been enabled.
- Set up an OAuth client and create authorization credentials. The OAuth client lets you authenticate and access the instance. You must set up OAuth to create a Looker (Google Cloud core) instance, even if you are using a different authentication method to authenticate users into your instance.
- If you want to use VPC Service Controls, you must create a private IP instance instead of a public IP instance.
Required roles
To get the permissions that you need to create a Looker (Google Cloud core) instance,
ask your administrator to grant you the
Looker Admin (roles/looker.admin
) IAM role on the project the instance will reside in.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
You may also need additional IAM roles if you want to set up customer-managed encryption keys (CMEK). Visit the Access control with IAM page of the Cloud Key Management Service documentation to learn more.
Create a Looker (Google Cloud core) instance
Looker (Google Cloud core) requires approximately 60 minutes to generate a new instance.
To create your Looker (Google Cloud core) instance, select one of the following options:
console
- Navigate to the Looker (Google Cloud core) product page from your project in the Google Cloud console. If you have already created a Looker (Google Cloud core) instance within this project, this will open the Instances page.
- Click CREATE INSTANCE.
- In the Instance name section, provide a name for your Looker (Google Cloud core) instance. The instance name isn't associated with the URL of the Looker (Google Cloud core) instance once it is created. The instance name cannot be changed after instance creation.
- In the OAuth Application Credentials section, enter the OAuth client ID and OAuth secret that you created when you set up your OAuth client.
- In the Region section, select the appropriate option from the drop-down menu to host your Looker (Google Cloud core) instance. Select the region that matches the region in the subscription contract, which is where the quota for your project is allocated. Available regions are listed on the Looker (Google Cloud core) locations documentation page.
In the Edition section, set the instance edition according to your organization's needs. The edition type affects some of the features available for the instance. Make sure that you choose the same edition type as listed in your annual contract and that you have quota allocated for that edition type. These are the edition options:
- Standard: Looker (Google Cloud core) platform for small organizations or teams with fewer than 50 users
- Enterprise: Looker (Google Cloud core) platform with enhanced security features for addressing a wide variety of internal BI and analytics use cases
- Embed: Looker (Google Cloud core) platform for deploying and maintaining reliable external analytics and custom applications at scale
Editions cannot be changed after instance creation. If you want to change an edition, you can use import and export to move your Looker (Google Cloud core) instance data into a new instance that is configured with a different edition.
In the Customize your instance section, click SHOW CONFIGURATION OPTIONS to display a group of additional settings that you can customize for the instance.
In the Connections section, select only Public IP. A public IP connection setting assigns an external, internet-accessible IP address and is available for all edition types.
If you select only Private IP or both Public IP and Private IP, follow the steps on the Create a private IP Looker (Google Cloud core) instance documentation page to complete your network setup during instance creation.
In the Encryption section, you can select the type of encryption to use on your instance. The following encryption options are available:
- Google-managed encryption key: This is the default option and doesn't require any additional configuration.
- Customer-managed encryption key (CMEK): See the Using customer-managed encryption keys with Looker (Google Cloud core) documentation page for more information on CMEK and how to configure it during instance creation. The type of encryption cannot be changed after instance creation.
- Enable FIPS 140-2 Validated Encryption: See the Enable FIPS 140-2 level 1 compliance on a Looker (Google Cloud core) instance documentation page for more information on FIPS 140-2 support on Looker (Google Cloud core).
In the Maintenance Window section, you can optionally specify the day of the week and the hour in which Looker (Google Cloud core) schedules maintenance. Maintenance windows last for one hour. By default, the Preferred Window option in the Maintenance Window is set to Any window.
In the Deny Maintenance Period section, you can optionally specify a block of days in which Looker (Google Cloud core) doesn't schedule maintenance. Deny maintenance periods can be up to 60 days long. You must allow at least 14 days of maintenance availability between any 2 deny maintenance periods.
Click Create.
gcloud
- If you are using CMEK, then create the Looker service account and follow the instructions for setting up CMEK first.
Use the
gcloud looker instances create
command to create the instance:gcloud looker instances create INSTANCE_NAME \ --project=PROJECT_ID \ --oauth-client-id=OAUTH_CLIENT_ID \ --oauth-client-secret=OAUTH_CLIENT_SECRET \ --region=REGION \ --edition=EDITION \ [--consumer-network=CONSUMER_NETWORK --private-ip-enabled --reserved-range=RESERVED_RANGE] [--no-public-ip-enabled] [--public-ip-enabled] [--async]
Replace the following:
INSTANCE_NAME
: a name for your Looker (Google Cloud core) instance; it isn't associated with the instance URL.PROJECT_ID
: the name of the Google Cloud project in which you are creating the Looker (Google Cloud core) instance.OAUTH_CLIENT_ID
andOAUTH_CLIENT_SECRET
: the OAuth client ID and OAuth secret that you created when you set up your OAuth client. After the instance has been created, set up the authorized redirect URI in the OAuth client that you previously created.REGION
: the region in which your Looker (Google Cloud core) instance is hosted. Select the region that matches the region in the subscription contract. Available regions are listed on the Looker (Google Cloud core) locations documentation page.EDITION
: the edition for the instance. Its possible values arecore-standard-annual
,core-enterprise-annual
, orcore-embed-annual
. Editions cannot be changed after instance creation. If you want to change an edition, you can use import and export to move your Looker (Google Cloud core) instance data into a new instance that is configured with a different edition.CONSUMER_NETWORK
: your VPC network or Shared VPC. Must be set if you're creating a private IP instance.RESERVED_RANGE
: the range of IP addresses within the VPC in which Google will provision a subnetwork for your Looker (Google Cloud core) instance. Don't define a range if you're enabling a private IP network connection for your instance.
Also include these flags:
--public-ip-enabled
is used to enable public IP.--async
is recommended when you're creating a Looker (Google Cloud core) instance.
You can add more parameters to apply other instance settings:
Replace the following:[--maintenance-window-day=MAINTENANCE_WINDOW_DAY --maintenance-window-time=MAINTENANCE_WINDOW_TIME] [--deny-maintenance-period-end-date=DENY_MAINTENANCE_PERIOD_END_DATE --deny-maintenance-period-start-date=DENY_MAINTENANCE_PERIOD_START_DATE --deny-maintenance-period-time=DENY_MAINTENANCE_PERIOD_TIME] --kms-key=KMS_KEY_ID [--fips-enabled]
MAINTENANCE_WINDOW_DAY
: must be one of the following:friday
,monday
,saturday
,sunday
,thursday
,tuesday
,wednesday
. See the Manage maintenance policies for Looker (Google Cloud core) documentation page for more information about maintenance window settings.MAINTENANCE_WINDOW_TIME
andDENY_MAINTENANCE_PERIOD_TIME
: must be in UTC time in 24-hour format (for example, 13:00, 17:45).DENY_MAINTENANCE_PERIOD_START_DATE
andDENY_MAINTENANCE_PERIOD_END_DATE
: must be in the formatYYYY-MM-DD
.KMS_KEY_ID
: must be the key that is created when setting up customer-managed encryption keys (CMEK).
You may include the
--fips-enabled
flag to enable FIPS 140-2 level 1 compliance.
Terraform
Use the following Terraform resource to provision a Standard Looker (Google Cloud core) instance with basic functionality:
Use the following Terraform resource to provision a Standard Looker (Google Cloud core) instance with additional settings applied:
Use the following Terraform resource to provision an Enterprise Looker (Google Cloud core) instance with a private network connection:
To learn how to apply or remove a Terraform configuration, see Basic Terraform commands.
Instance creation cannot be paused or terminated once it has been initiated. When your Terraform resource has been provisioned successfully, your terminal will print the following message:
Creation complete after XmXs [id=projects/PROJECT-ID/locations/REGION/instances/my-instance-randomly-generated-name] Apply complete! Resources: X added, X changed, X destroyed.
To view the status of your new instance, which will be assigned a randomly generated name, visit the Instances page within the console.
As the instance is being created, you can view its status on the Instances page within the console. You can also see your instance creation activity by clicking on the notifications icon in the Google Cloud console menu.
Once the public IP instance is created, the instance's public URL will appear in the Instance URL column of the Instances page.
After the instance has been created, set up the authorized redirect URI in the OAuth client that you previously created.
After the instance is created and you have completed OAuth setup, you can view the instance by navigating to the instance URL, which will be shown on the Instances page.
What's next
- Set up and access a custom domain for a public IP Looker (Google Cloud core) instance
- Connect Looker (Google Cloud core) to your database
- Prepare a Looker (Google Cloud core) instance for users
- Manage users within Looker (Google Cloud core)