oci-cis-landingzone-quickstart icon indicating copy to clipboard operation
oci-cis-landingzone-quickstart copied to clipboard

Error while deploying

Open meresey opened this issue 3 years ago • 5 comments
trafficstars

Encountering error below when i execute apply

Screenshot 2022-05-25 124116

meresey avatar May 25 '22 09:05 meresey

Hello @meresey, sorry for not getting back earlier, but is this still an issue? In which environment were you running terraform?

andrecorreaneto avatar Sep 12 '22 15:09 andrecorreaneto

Yes this is still an issue. I just ran into it today 10/10/2022. I am running terraform in Windows:

terraform version
Terraform v1.2.7
on windows_amd64
+ provider registry.terraform.io/hashicorp/null v3.1.1
+ provider registry.terraform.io/oracle/oci v4.96.0

Your version of Terraform is out of date! The latest version
is 1.3.2. You can update by downloading from https://www.terraform.io/downloads.html

oci --version
3.15.2

gillfimj avatar Oct 10 '22 12:10 gillfimj

I have been able to get past this error by modifying the source as follows:

#     command = "sleep ${local.delay_in_secs}" # Wait for keys policy to be available.
    command = "start-sleep ${local.delay_in_secs}" # Wait for compartments to be available.
    interpreter = ["PowerShell", "-Command"]

It would be nice if there was a better way to handle this to make it more dynamic based on the environment of the developer, i.e. if Linux do this, if Windows do that. Not sure if that's possible.

gillfimj avatar Oct 10 '22 13:10 gillfimj

One option is using git bash for a linux-like experience in Windows. With that said, we'll look into how to provide a seamless native Windows experience.

andrecorreaneto avatar Oct 17 '22 13:10 andrecorreaneto

I should further explain the Windows environment in which this happens. I do all my coding in VSCode, so the errors are happening in the PowerShell terminal. I get the idea of using git bash, but changing focus just to run terraform is quite a hassle.

gillfimj avatar Oct 19 '22 04:10 gillfimj

This should be resolved in release 2.5.1 we just released

Halimer avatar Dec 16 '22 22:12 Halimer