Remove usage of deprecated terraform provider

This commit is contained in:
Andrew Dryga
2023-09-28 21:13:58 -06:00
parent 77a1fedc60
commit 9d45081f27
2 changed files with 3 additions and 11 deletions

View File

@@ -132,11 +132,7 @@ resource "google_project_iam_member" "cloudtrace" {
member = "serviceAccount:${google_service_account.application.email}"
}
# Deploy the app
data "template_file" "clout-init" {
template = file("${path.module}/templates/cloud-init.yaml")
}
# Deploy app
resource "google_compute_instance_template" "application" {
project = var.project_id
@@ -213,7 +209,7 @@ resource "google_compute_instance_template" "application" {
}
})
user-data = data.template_file.clout-init.rendered
user-data = templatefile("${path.module}/templates/cloud-init.yaml", {})
google-logging-enabled = "true"
# Enable FluentBit agent for logging, which will be default one from COS 109

View File

@@ -149,10 +149,6 @@ resource "google_compute_subnetwork" "subnetwork" {
}
# Deploy app
data "template_file" "clout-init" {
template = file("${path.module}/templates/cloud-init.yaml")
}
resource "google_compute_instance_template" "application" {
for_each = var.instances
@@ -235,7 +231,7 @@ resource "google_compute_instance_template" "application" {
}
})
user-data = data.template_file.clout-init.rendered
user-data = templatefile("${path.module}/templates/cloud-init.yaml", {})
google-logging-enabled = "true"
# Enable FluentBit agent for logging, which will be default one from COS 109