Я имею в виду https://github.com/GoogleCloudPlatform/healthcare/tree/master/deploy, чтобы включить Data Protection Toolkit
cat config.yaml
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This sample configuration provides the minimum configuration required by the DPT scripts.
# Audit resources will be created locally in the project.
overall:
organization_id: '7954763295'
billing_account: 89NJCG-KL987Y-LPIU76
domain: mydomain.com
generated_fields_path: ./generated_fields.yaml
projects:
- project_id: ghcdrupalprojectdpt
owners_group: ghcdrupalproject-owners@mydomain.com
auditors_group: ghcdrupalproject-auditors@mydomain.com
audit:
logs_bigquery_dataset:
dataset_id: mydomain_ghcdrupalprojectdpt001_logs # Bigquery Dataset names must use underscores.
location: US
devops:
state_storage_bucket:
name: mydomain-ghcdrupalprojectdpt-state
location: US
compute_instances:
- name: ghcdrupalprojectdpt-instance
zone: us-central1-a
machine_type: n1-standard-1
boot_disk:
initialize_params:
image: debian-cloud/debian-9
network_interface:
network: default
metadata:
items:
- key: startup-script
value: sudo apt-get update
Я запускаю команду запуска bazel, как указано ниже. Я столкнулся с этой проблемой, столкнувшейся с несоответствующим значением для атрибута "метаданные": элемент "элементы": обязательная строка.
#bazel run cmd/apply:apply -- --config_path=config.yaml --projects=ghcdrupalprojectdpt
2020/04/11 20:48:18 Running: [terraform apply]
Releasing state lock. This may take a few moments...
2020/04/11 20:48:23 Failed to apply configs: failed to apply "ghcdrupalprojectdpt": failed to apply resources: failed to apply plan: exit status 1:
Error: Incorrect attribute value type
on main.tf.json line 156, in resource[5].google_compute_instance.ghcdrupalprojectdpt-instance:
156: "metadata": {
157: "items": [
158: {
159: "key": "startup-script",
160: "value": "sudo apt-get update"
161: }
162: ]
163: },
Inappropriate value for attribute "metadata": element "items": string
required.
Я с нетерпением жду вашего ответа. Заранее благодарим.
Больше информации о Базеле: - https://www.bazel.build/
С наилучшими пожеланиями,
Каушал