Skip to content
Open
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
3 changes: 2 additions & 1 deletion gcp/dev/vm3/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
resource "random_string" "random" {
length = 16
length = var.length
special = true
override_special = "/@£$"
lower = false
}


Expand Down
5 changes: 5 additions & 0 deletions gcp/dev/vm3/varaibles.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variable "length" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [tflint] <terraform_documented_variables> reported by reviewdog 🐶
length variable has no description

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [tflint] <terraform_typed_variables> reported by reviewdog 🐶
length variable has no type

description = "The length of the random string to generate"
default = 10
type = number
}
4 changes: 4 additions & 0 deletions tfaction-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ target_groups:
- working_directory: gcp/dev/
target: gcp/dev/
template_dir: templates/gcp
- working_directory: gcp/networking/
target: gcp/dev/
template_dir: templates/networking

# terraform_plan_config:
# gcp_service_account: terraform-plan@example.iam.gserviceaccount.com
# gcp_workload_identity_provider: projects/000000000000/locations/global/workloadIdentityPools/github/providers/tfaction
Expand Down