-
Notifications
You must be signed in to change notification settings - Fork 30
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
Missing required argument #350
Comments
for information, in the debugs I have always in the end of the debug this lines : 2023-04-25T17:11:12.875+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" |
Hello Mohammed SETTAF, Thanks for reaching us,
terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.0"
}
}
}
provider "outscale" {
access_key_id = var.access_key_id
secret_key_id = var.secret_key_id
region = var.region
} in variables.tf variable "access_key_id" {}
variable "secret_key_id" {}
variable "region" {} in terraform.tfvars access_key_id = "MyAccessKey" ## you can put your access_key_id here Or export TF_VAR_access_key_id="Myaccesskey"
secret_key_id = "MySecretKey" ## you can put your secret_key_id here Or export TF_VAR_secret_key_id="Mysecretkey"
region = "cloudgouv-eu-west-1" ## you can put your region here Or export TF_VAR_region="Myregion"
terraform init
terraform plan
.... ===========================
terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.0"
}
}
} in variables.tf variable "region" {} in terraform.tfvars region = "cloudgouv-eu-west-1"
terraform init
terraform plan
... There are a few examples here: example Best regards. |
Thank you for your reply. Even with this configuration I always have the same errors :( .... For information, everything worked fine last week and from friday I started having this error... I didn't have this kind of spliting in the configuration file but I have all the variable in one file... Also, when I execute terraform plan a lot of output "outscale_security_group_rule.rule6_sgadmincapsule: Refreshing state... [id=XXXXXX] andd after I have this output error│ Error: Missing required argument Thank you for your help |
Hello,
terraform plan
terraform apply |
Hello, Below the informations you asked : Provider.tf : provider "outscale" { variables.tf : terraform.tfvars : I tried also the solution to export the variables and it doesn't work :( :( For information, when it was working I used the provider outscale-dev. So the tfsate have the "outscale-dev" as provider. Thank you for you support. Best regards, |
Hello Mohammed SETTAF, I tried it under Windows and it works. Can you create a new folder ( provider.tf terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.0"
}
}
}
provider "outscale" {
access_key_id = var.access_key_id
secret_key_id = var.secret_key_id
region = var.region
} in variables.tf variable "access_key_id" {}
variable "secret_key_id" {}
variable "region" {} in terraform.tfvars access_key_id = "MyAccessKey"
secret_key_id = "MySecretKey"
region = "cloudgouv-eu-west-1"
volume.tf terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.0"
}
}
}
resource "outscale_volume" "volume_test" {
subregion_name = "${var.region}a" ## fix your subregion_name here, if not correct
volume_type = "gp2"
size ="50"
} copy cd testTF
terraform init
TF_LOG=TRACE terraform apply Best regards. |
Hi,
I have the following error :
│ Error: Missing required argument
│
│ The argument "access_key_id" is required, but was not set.
╵
╷
│ Error: Missing required argument
│
│ The argument "region" is required, but was not set.
╵
╷
│ Error: Missing required argument
│
│ The argument "secret_key_id" is required, but was not set.
even having the the following configuration on providers.tf :
provider "outscale" {
access_key_id = "XXXXX"
secret_key_id = "YYYYY"
region = "cloudgouv-eu-west-1"
}
Terraform v1.4.5
on windows_386
Thank you in advance for your help.
Best regardds,
Mohammed SETTAF
The text was updated successfully, but these errors were encountered: