{"action":"created","issue":{"url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/262","repository_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues","labels_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/262/comments","events_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/262/events","html_url":"https://github.com/QT-DevOps/DevOpsIssues/issues/262","id":380339497,"node_id":"MDU6SXNzdWUzODAzMzk0OTc=","number":262,"title":"Unable to connect machine via terraform","user":{"login":"kmahesh121785","id":34811777,"node_id":"MDQ6VXNlcjM0ODExNzc3","avatar_url":"https://avatars1.githubusercontent.com/u/34811777?v=4","gravatar_id":"","url":"https://api.github.com/users/kmahesh121785","html_url":"https://github.com/kmahesh121785","followers_url":"https://api.github.com/users/kmahesh121785/followers","following_url":"https://api.github.com/users/kmahesh121785/following{/other_user}","gists_url":"https://api.github.com/users/kmahesh121785/gists{/gist_id}","starred_url":"https://api.github.com/users/kmahesh121785/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmahesh121785/subscriptions","organizations_url":"https://api.github.com/users/kmahesh121785/orgs","repos_url":"https://api.github.com/users/kmahesh121785/repos","events_url":"https://api.github.com/users/kmahesh121785/events{/privacy}","received_events_url":"https://api.github.com/users/kmahesh121785/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-13T17:27:50Z","updated_at":"2018-11-14T09:49:02Z","closed_at":null,"author_association":"NONE","body":"Error\r\n\r\naws_instance.mymachine (remote-exec):   Checking Host Key: false\r\naws_instance.mymachine: Still creating... (1m0s elapsed)\r\naws_instance.mymachine: Still creating... (1m10s elapsed)\r\naws_instance.mymachine (remote-exec): Connecting to remote host via SSH...\r\naws_instance.mymachine (remote-exec):   Host: 18.188.13.49\r\naws_instance.mymachine (remote-exec):   User: ec2_user\r\naws_instance.mymachine (remote-exec):   Password: false\r\naws_instance.mymachine (remote-exec):   Private key: true\r\naws_instance.mymachine (remote-exec):   SSH Agent: false\r\naws_instance.mymachine (remote-exec):   Checking Host Key: false\r\naws_instance.mymachine: Still creating... (1m20s elapsed)\r\n\r\nFile\r\n\r\n==============\r\n\r\nvariable \"access\" {}\r\nvariable \"secret\" {}\r\nvariable \"region\" {}\r\nvariable \"instanctype\"{\r\n    default =\"t2.micro\"\r\n}\r\nvariable \"image\"{}\r\n\r\nvariable \"key\"{\r\n    default = \"new\"\r\n}\r\nvariable \"secgroups\"{\r\n    type=\"list\"\r\n    default=[\"launch-wizard-13\"]\r\n}\r\nvariable \"private_key_path\"{\r\n    default= \"new.pem\"\r\n}\r\n\r\nprovider \"aws\" {\r\n  access_key = \"${var.access}\"\r\n  secret_key = \"${var.secret}\"\r\n  region =     \"${var.region}\"\r\n}\r\n\r\nresource \"aws_instance\" \"mymachine\" {\r\n  instance_type = \"${var.instanctype}\"\r\n  ami =\"${var.image}\"\r\n  key_name=\"${var.key}\"\r\n  security_groups=\"${var.secgroups}\"\r\n  tags{\r\n      Name = \"Helloworld\"\r\n  }\r\n  connection{\r\n      user=\"ec2_user\"\r\n      private_key = \"${file(var.private_key_path)}\"\r\n  }\r\n  provisioner \"remote-exec\"{\r\n      inline=[\"sudo apt-get update\", \"sudo apt-get install tree -y\"]\r\n  }\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/comments/438602159","html_url":"https://github.com/QT-DevOps/DevOpsIssues/issues/262#issuecomment-438602159","issue_url":"https://api.github.com/repos/QT-DevOps/DevOpsIssues/issues/262","id":438602159,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODYwMjE1OQ==","user":{"login":"kmahesh121785","id":34811777,"node_id":"MDQ6VXNlcjM0ODExNzc3","avatar_url":"https://avatars1.githubusercontent.com/u/34811777?v=4","gravatar_id":"","url":"https://api.github.com/users/kmahesh121785","html_url":"https://github.com/kmahesh121785","followers_url":"https://api.github.com/users/kmahesh121785/followers","following_url":"https://api.github.com/users/kmahesh121785/following{/other_user}","gists_url":"https://api.github.com/users/kmahesh121785/gists{/gist_id}","starred_url":"https://api.github.com/users/kmahesh121785/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmahesh121785/subscriptions","organizations_url":"https://api.github.com/users/kmahesh121785/orgs","repos_url":"https://api.github.com/users/kmahesh121785/repos","events_url":"https://api.github.com/users/kmahesh121785/events{/privacy}","received_events_url":"https://api.github.com/users/kmahesh121785/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T09:49:02Z","updated_at":"2018-11-14T09:49:02Z","author_association":"NONE","body":"terraform apply -var access=XXXXX -var secret=XXXXXXX -var region=us-east-2 -var image=ami-0b59bfac6be064b78 .\r\n\r\ni provided access and secret key correctly"}}
{"actor":{"display_login":"kmahesh121785"}}