-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
terrakube ignores provider configuration block during terraform execution #766
Comments
Hello @requiming I tried your example and I dont see any issue: main.tf. terraform {
required_version = "~> 1.3.9"
required_providers {
site24x7 = {
source = "site24x7/site24x7"
}
}
cloud {
hostname = "terrakube-api.minikube.net"
organization = "simple"
workspaces {
name = "site24x7"
}
}
} providers.tf provider "site24x7" {
data_center = "US"
} Remote logs:
|
it seems it doesn't work at all, do you have configured credentials for site24x7? it will not run without them |
i think it's another bug, i had same output when initially configured repository, like empty, having empty state and auto.tfvars in repository, and plan wasn't showing and changes/trying to request site24x7 api, after i pushed state it started to do something, but failed with this error before. |
I just used the files that you have provided to run a plan, I have no idea about that provider or how to use it |
What Terrakube version are you using? Are you using some folder structure with modules in your repository? |
docker.io/azbuilder/api-server:2.19.2 |
main.tf (part of file)
|
I was checking your information and I am not really sure why you are having that issue because in the end if you have a VCS workspace and you run a "speculative plan" using the CLI driven workflow it will basically take all the files that are include in your directory and simple run a terraform plan for one particular folder. There was one issue where some files were not copy to run the remote plan as you can see here, not sure if that could be related for your configuration, maybe you can take a look there |
Bug description 🐞
After configuration of first project and state uploading, i started terrakube job in created workspace, added necesarry ENV variables from site24x7 except one which was included in provider configuration block, and after JOB failed i found such error below, unfortunaly not able fix by changing terraform code.
Steps to reproduce
Expected behavior
locally terraform plan works without error
Example repository
terraform.tf
providers.tf
Anything else?
Downloading archive from url in main page of workspace shows content of providers.tf the same as in repository or locally
output from terrakube
Initializing Terrakube Job 18 Step cf092d77-a0a4-4164-a518-1e0f97b8c193
Running Terraform 1.3.9
Running Terraform Init:
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
Running Terraform PLAN
���
��� Error: Missing required argument
���
��� The argument "data_center" is required, but was not set.
���
The text was updated successfully, but these errors were encountered: