Skip to content

Commit 098214d

Browse files
fix: fixes for tflint (#110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Andrew Peabody <[email protected]>
1 parent fa54f96 commit 098214d

File tree

9 files changed

+10
-18
lines changed

9 files changed

+10
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.4
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.10
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ tags:
3838
- 'integration'
3939
substitutions:
4040
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
41-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.4'
41+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.4'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'

examples/logs-slack-alerts/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ If not using the default App Engine default service account (PROJECT_ID@appspot.
2020
| audit\_log\_table | BigQuery Table where logs are sent | `string` | n/a | yes |
2121
| dataset\_name | BigQuery Dataset where logs are sent | `string` | n/a | yes |
2222
| error\_message\_column | BigQuery Column in audit log table representing logging error | `string` | n/a | yes |
23-
| job\_schedule | The cron schedule for triggering the cloud function | `string` | `"55 * * * *"` | no |
2423
| project\_id | The project ID to host the network in | `string` | n/a | yes |
2524
| region | The region the project is in (App Engine specific) | `string` | `"us-central1"` | no |
2625
| slack\_webhook | Slack webhook to send alerts | `string` | n/a | yes |

examples/logs-slack-alerts/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ variable "project_id" {
1919
type = string
2020
}
2121

22-
variable "job_schedule" {
23-
description = "The cron schedule for triggering the cloud function"
24-
type = string
25-
default = "55 * * * *"
26-
27-
}
28-
2922
variable "slack_webhook" {
3023
description = "Slack webhook to send alerts"
3124
type = string

examples/pubsub_scheduled/versions.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ terraform {
2424
source = "hashicorp/google-beta"
2525
version = "~> 4.0"
2626
}
27-
random = {
28-
source = "hashicorp/random"
29-
}
3027
}
3128
required_version = ">= 0.13"
3229
}

modules/project_cleanup/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
locals {
18-
target_included_labels = var.target_tag_name != "" && var.target_tag_value != "" ? merge({ "${var.target_tag_name}" = "${var.target_tag_value}" }, var.target_included_labels) : var.target_included_labels
18+
target_included_labels = var.target_tag_name != "" && var.target_tag_value != "" ? merge({ var.target_tag_name = var.target_tag_value }, var.target_included_labels) : var.target_included_labels
1919
}
2020

2121
resource "google_service_account" "project_cleaner_function" {

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616

1717
output "name" {
18-
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0.name : null
18+
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job[0].name : null
1919
description = "The name of the job created"
2020
}
2121

2222
output "scheduler_job" {
23-
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0 : null
23+
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job[0] : null
2424
description = "The Cloud Scheduler job instance"
2525
}
2626

versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
terraform {
1818
required_version = ">= 0.13"
1919
required_providers {
20-
2120
google = {
2221
source = "hashicorp/google"
2322
version = ">= 3.53, < 5.0"
2423
}
24+
random = {
25+
source = "hashicorp/random"
26+
version = ">= 2.1, < 4.0"
27+
}
2528
}
2629

2730
provider_meta "google" {

0 commit comments

Comments
 (0)