-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Input variable prompt is missing in latest version #3737
Comments
cat infrastructure_aws_module.tf provider "aws" { module "aws-dc" {
} output "bastion_private_ips" { output "artifactory_private_ips" { output "deployment_host_private_ips" { output "bastion_public_ip" { output "artifactory_public_ip" { output "vpc_id" { output "network" { output "region" { Output when I ran terraform plan . In 0.5.3 it used to prompt the user to input value for these variables. terraform plan There are warnings and/or errors related to your configuration. Please Errors:
|
@saswatp terraform plan and apply have an option called input This has been changed to be set to false (as of 0.6.0) Therefore, the command should now be as follows:
That will then prompt you for the values |
This might still be a bug. I'm fairly certain that the intended behavior here is still to prompt on unset variables. Tagging as a core bug and we'll take a look. A minimal config that reproduces on master: variable "ak" {}
variable "sk" {}
variable "re" {}
variable "ihaveadefault" { default = "yup" }
provider "aws" {
access_key = "${var.ak}"
secret_key = "${var.sk}"
region = "${var.re}"
}
resource "aws_vpc" "foo" {
cidr_block = "10.11.12.0/24"
} |
I can reproduce this with |
This is now fixed on |
@jen20 - Thanks for the fix. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When using latest version terraform doesn't prompt to enter value of a variable if I don't provide a variable value using -var 'key=value' option. It just throws an error saying variable value is not set.
Again , this used to work in 0.5.3 version .
The text was updated successfully, but these errors were encountered: