Skip to content

Commit

Permalink
fix: fixes for tflint (#110)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Peabody <[email protected]>
  • Loading branch information
renovate[bot] and apeabody authored Mar 13, 2023
1 parent fa54f96 commit 098214d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.4
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.10
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd

Expand Down
2 changes: 1 addition & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.4'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
2 changes: 1 addition & 1 deletion build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ tags:
- 'lint'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.4'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.10'
1 change: 0 additions & 1 deletion examples/logs-slack-alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ If not using the default App Engine default service account (PROJECT_ID@appspot.
| audit\_log\_table | BigQuery Table where logs are sent | `string` | n/a | yes |
| dataset\_name | BigQuery Dataset where logs are sent | `string` | n/a | yes |
| error\_message\_column | BigQuery Column in audit log table representing logging error | `string` | n/a | yes |
| job\_schedule | The cron schedule for triggering the cloud function | `string` | `"55 * * * *"` | no |
| project\_id | The project ID to host the network in | `string` | n/a | yes |
| region | The region the project is in (App Engine specific) | `string` | `"us-central1"` | no |
| slack\_webhook | Slack webhook to send alerts | `string` | n/a | yes |
Expand Down
7 changes: 0 additions & 7 deletions examples/logs-slack-alerts/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ variable "project_id" {
type = string
}

variable "job_schedule" {
description = "The cron schedule for triggering the cloud function"
type = string
default = "55 * * * *"

}

variable "slack_webhook" {
description = "Slack webhook to send alerts"
type = string
Expand Down
3 changes: 0 additions & 3 deletions examples/pubsub_scheduled/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ terraform {
source = "hashicorp/google-beta"
version = "~> 4.0"
}
random = {
source = "hashicorp/random"
}
}
required_version = ">= 0.13"
}
2 changes: 1 addition & 1 deletion modules/project_cleanup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

locals {
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
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
}

resource "google_service_account" "project_cleaner_function" {
Expand Down
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/

output "name" {
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0.name : null
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job[0].name : null
description = "The name of the job created"
}

output "scheduler_job" {
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0 : null
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job[0] : null
description = "The Cloud Scheduler job instance"
}

Expand Down
5 changes: 4 additions & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
terraform {
required_version = ">= 0.13"
required_providers {

google = {
source = "hashicorp/google"
version = ">= 3.53, < 5.0"
}
random = {
source = "hashicorp/random"
version = ">= 2.1, < 4.0"
}
}

provider_meta "google" {
Expand Down

0 comments on commit 098214d

Please sign in to comment.