Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes for tflint #110

Merged
merged 2 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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