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

Error while deploying #61

Closed
meresey opened this issue May 25, 2022 · 6 comments
Closed

Error while deploying #61

meresey opened this issue May 25, 2022 · 6 comments

Comments

@meresey
Copy link

meresey commented May 25, 2022

Encountering error below when i execute apply

Screenshot 2022-05-25 124116

@andrecorreaneto
Copy link
Member

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

@gillfimj
Copy link

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
Copy link

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.

@andrecorreaneto
Copy link
Member

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.

@gillfimj
Copy link

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.

@Halimer
Copy link
Collaborator

Halimer commented Dec 16, 2022

This should be resolved in release 2.5.1 we just released

@Halimer Halimer closed this as completed Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants