{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3083","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3083/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3083/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3083/events","html_url":"https://github.com/hashicorp/terraform/issues/3083","id":103380837,"number":3083,"title":"Getting input from user with 'terraform plan' fails","user":{"login":"pete0emerson","id":296757,"avatar_url":"https://avatars.githubusercontent.com/u/296757?v=3","gravatar_id":"","url":"https://api.github.com/users/pete0emerson","html_url":"https://github.com/pete0emerson","followers_url":"https://api.github.com/users/pete0emerson/followers","following_url":"https://api.github.com/users/pete0emerson/following{/other_user}","gists_url":"https://api.github.com/users/pete0emerson/gists{/gist_id}","starred_url":"https://api.github.com/users/pete0emerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pete0emerson/subscriptions","organizations_url":"https://api.github.com/users/pete0emerson/orgs","repos_url":"https://api.github.com/users/pete0emerson/repos","events_url":"https://api.github.com/users/pete0emerson/events{/privacy}","received_events_url":"https://api.github.com/users/pete0emerson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T22:38:33Z","updated_at":"2015-09-21T22:30:51Z","closed_at":null,"body":"# Terraform version\r\n\r\n```\r\n$ terraform version\r\nTerraform v0.6.3\r\n```\r\n\r\n# Description\r\n\r\nIf a variable isn't set, then according to https://www.terraform.io/intro/getting-started/variables.html:\r\n\r\n> If you execute terraform plan or apply without doing anything, Terraform will ask you to input the variables interactively.\r\n\r\nUsing `terraform apply` works:\r\n\r\n```\r\n$ terraform apply\r\nvar.aws_access_key\r\n  AWS access key\r\n\r\n  Enter a value:\r\n\r\n```\r\n\r\nBut `terraform plan` does not:\r\n\r\n```\r\n $ terraform plan\r\nThere are warnings and/or errors related to your configuration. Please\r\nfix these before continuing.\r\n\r\nErrors:\r\n\r\n  * 4 error(s) occurred:\r\n\r\n* Required variable not set: aws_secret_key\r\n* Required variable not set: aws_region\r\n* Required variable not set: cidr_block\r\n* Required variable not set: aws_access_key\r\n```\r\n\r\n# Steps to reproduce\r\n\r\nIn `vpc.tf`:\r\n\r\n```\r\nprovider \"aws\" {\r\n    access_key = \"${var.aws_access_key}\"\r\n    secret_key = \"${var.aws_secret_key}\"\r\n    region = \"${var.aws_region}\"\r\n}\r\n\r\nresource \"aws_vpc\" \"dev\" {\r\n    cidr_block = \"${var.cidr_block}\"\r\n    instance_tenancy = \"default\"\r\n    tags {\r\n        Name = \"dev\"\r\n    }\r\n}\r\n```\r\n\r\nIn `variables.tf`:\r\n\r\n```\r\nvariable \"aws_access_key\" {\r\n    description = \"AWS access key\"\r\n}\r\n\r\nvariable \"aws_secret_key\" {\r\n    description = \"AWS secret key\"\r\n}\r\nvariable \"aws_region\" {\r\n    description = \"AWS region\"\r\n}\r\nvariable \"cidr_block\" {\r\n    description = \"CIDR block\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/142127782","html_url":"https://github.com/hashicorp/terraform/issues/3083#issuecomment-142127782","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3083","id":142127782,"user":{"login":"jagadeeshaluri00","id":1361004,"avatar_url":"https://avatars.githubusercontent.com/u/1361004?v=3","gravatar_id":"","url":"https://api.github.com/users/jagadeeshaluri00","html_url":"https://github.com/jagadeeshaluri00","followers_url":"https://api.github.com/users/jagadeeshaluri00/followers","following_url":"https://api.github.com/users/jagadeeshaluri00/following{/other_user}","gists_url":"https://api.github.com/users/jagadeeshaluri00/gists{/gist_id}","starred_url":"https://api.github.com/users/jagadeeshaluri00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagadeeshaluri00/subscriptions","organizations_url":"https://api.github.com/users/jagadeeshaluri00/orgs","repos_url":"https://api.github.com/users/jagadeeshaluri00/repos","events_url":"https://api.github.com/users/jagadeeshaluri00/events{/privacy}","received_events_url":"https://api.github.com/users/jagadeeshaluri00/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T22:30:50Z","updated_at":"2015-09-21T22:30:50Z","body":"looks like TF_VAR_access_key and TF_VAR_secret_key has been removed in latest release. that seem to be the reason for my issues. once I started using AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY , it's working as expected."}}