F5Networks / terraform-gcp-bigip-module

Terraform module for Deploying BIG-IP in GCP
Apache License 2.0
9 stars 13 forks source link

local-exec sleep provisioner fails on Windows #8

Closed memes closed 2 years ago

memes commented 2 years ago

When using the module on a Windows laptop, the BIG-IP module fails with an error because local-exec fails to execute sleep command.

module.bigip[0].google_compute_instance.f5vm01: Provisioning with 'local-exec'...
module.bigip[0].google_compute_instance.f5vm01 (local-exec): Executing: ["cmd" "/C" "sleep 250"]
module.bigip[0].google_compute_instance.f5vm01 (local-exec): 'sleep' is not recognized as an internal or external command,
module.bigip[0].google_compute_instance.f5vm01 (local-exec): operable program or batch file.
╷
│ Error: local-exec provisioner error
│
│   with module.bigip[0].google_compute_instance.f5vm01,
│   on .terraform\modules\bigip\main.tf line 260, in resource "google_compute_instance" "f5vm01":
│  260:   provisioner "local-exec" {
│
│ Error running command 'sleep 250': exit status 1. Output: 'sleep' is not recognized as an internal or external
│ command,
│ operable program or batch file.
│
╵
PS C:\Users\memes\Documents\1nic>
memes commented 2 years ago

PR #11 offers a fix for the issue.

trinaths commented 2 years ago

Created INFRAANO-607 for internal tracking.

RavinderReddyF5 commented 2 years ago

@memes fixed in v1.1.0