File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright 2023 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+ # [START looker_google_looker_instance_psc]
17+ # Create an ENTERPRISE edition Looker (Google Cloud core) instance that has PSC enabled.
18+ resource "google_looker_instance" "main" {
19+ name = " my-instance"
20+ platform_edition = " LOOKER_CORE_ENTERPRISE_ANNUAL"
21+ region = " us-central1"
22+ private_ip_enabled = false
23+ public_ip_enabled = false
24+ psc_enabled = true
25+ oauth_config {
26+ client_id = " my-client-id"
27+ client_secret = " my-client-secret"
28+ }
29+ psc_config {
30+ allowed_vpcs = [" projects/test-project/global/networks/test" ]
31+ # update only
32+ # service_attachments = [{local_fqdn: "www.local-fqdn.com" target_service_attachment_uri: "projects/my-project/regions/us-east1/serviceAttachments/sa"}]
33+ }
34+ }
35+ # [END looker_google_looker_instance_psc]
You can’t perform that action at this time.
0 commit comments