File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ module "gce_container_sqlproxy" {
3636 restart_policy = " Always"
3737}
3838
39+ resource "google_project_iam_member" "log_writer_to_vm_sa" {
40+ project = var. project
41+ role = " roles/logging.logWriter"
42+
43+ member = " serviceAccount:${ google_service_account . main . email } "
44+ }
45+
3946resource "google_compute_firewall" "inbound" {
4047 name = " allow-${ local . instance_name } "
4148 network = var. firewall_network
@@ -75,10 +82,11 @@ resource "google_compute_instance" "main" {
7582 }
7683
7784 metadata = {
78- gce-container-declaration = module.gce_container_sqlproxy.metadata_value
79- google-logging-enabled = " true"
80- google-monitoring-enabled = " true"
81- block-project-ssh-keys = true
85+ gce-container-declaration = module.gce_container_sqlproxy.metadata_value
86+ google-logging-enabled = " true"
87+ google-logging-use-fluentbit = " true"
88+ google-monitoring-enabled = " true"
89+ block-project-ssh-keys = true
8290 }
8391
8492 labels = {
You can’t perform that action at this time.
0 commit comments