{"action":"closed","issue":{"url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/40","repository_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues","labels_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/40/comments","events_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/40/events","html_url":"https://github.com/QT-DevOps/DevOpsIssues/issues/40","id":331826755,"node_id":"MDU6SXNzdWUzMzE4MjY3NTU=","number":40,"title":"terraform module error","user":{"login":"ganeshkarthika","id":39472323,"node_id":"MDQ6VXNlcjM5NDcyMzIz","avatar_url":"https://avatars1.githubusercontent.com/u/39472323?v=4","gravatar_id":"","url":"https://api.github.com/users/ganeshkarthika","html_url":"https://github.com/ganeshkarthika","followers_url":"https://api.github.com/users/ganeshkarthika/followers","following_url":"https://api.github.com/users/ganeshkarthika/following{/other_user}","gists_url":"https://api.github.com/users/ganeshkarthika/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshkarthika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshkarthika/subscriptions","organizations_url":"https://api.github.com/users/ganeshkarthika/orgs","repos_url":"https://api.github.com/users/ganeshkarthika/repos","events_url":"https://api.github.com/users/ganeshkarthika/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshkarthika/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-13T03:16:28Z","updated_at":"2018-06-19T16:20:09Z","closed_at":"2018-06-19T16:20:09Z","author_association":"NONE","body":"I am not using any variable file to define the variables , I am trying to define in the same program/code\r\n\r\nprovider \"aws\" {\r\n  access_key = \"xxxx\"\r\n  secret_key = \"xxxx\"\r\n  region     = \"us-west-2c\"\r\n}\r\n\r\nmodule \"ec2-inst\" {\r\n  source = \"terraform-aws-modules/ec2-instance/aws\"\r\n\r\n  name           = \"ec2-inst\"\r\n  instance_count = 1\r\n\r\n  ami                    = \"ami-db710fa3\"\r\n  instance_type          = \"t2.micro\"\r\n  key_name               = \"tf_keypair\"\r\n  vpc_security_group_ids = [\"sg-06cdc7b5f9ccaee35\"]\r\n  subnet_id              = \"subnet-34385f6e\"\r\n\r\n  tags = {\r\n    Terraform   = \"true\"\r\n    Environment = \"dev\"\r\n  }\r\n}\r\n\r\n\r\nerror which I have received.\r\n==================\r\n\r\nError: resource 'aws_instance.terraform_inst' config: unknown variable reference                                                      d: 'imageid'; define it with a 'variable' block\r\n\r\n\r\n\r\nError: resource 'aws_instance.terraform_inst' config: unknown variable reference                                                      d: 'instancetype'; define it with a 'variable' block\r\n\r\n\r\n\r\nError: resource 'aws_instance.terraform_inst' config: unknown variable reference                                                      d: 'keypair'; define it with a 'variable' block\r\n\r\n\r\n\r\nError: provider config 'aws': unknown variable referenced: 'region'; define it w                                                      ith a 'variable' block\r\n\r\n\r\n\r\nError: provider config 'aws': unknown variable referenced: 'accesskey'; define i                                                      t with a 'variable' block\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"ganeshkarthika"}}