{"action":"opened","issue":{"url":"https://api.github.com/repos/test-kitchen/kitchen-ec2/issues/404","repository_url":"https://api.github.com/repos/test-kitchen/kitchen-ec2","labels_url":"https://api.github.com/repos/test-kitchen/kitchen-ec2/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/kitchen-ec2/issues/404/comments","events_url":"https://api.github.com/repos/test-kitchen/kitchen-ec2/issues/404/events","html_url":"https://github.com/test-kitchen/kitchen-ec2/issues/404","id":334617357,"node_id":"MDU6SXNzdWUzMzQ2MTczNTc=","number":404,"title":"Windows user_data log directory may not exist","user":{"login":"JCapriotti","id":801182,"node_id":"MDQ6VXNlcjgwMTE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/801182?v=4","gravatar_id":"","url":"https://api.github.com/users/JCapriotti","html_url":"https://github.com/JCapriotti","followers_url":"https://api.github.com/users/JCapriotti/followers","following_url":"https://api.github.com/users/JCapriotti/following{/other_user}","gists_url":"https://api.github.com/users/JCapriotti/gists{/gist_id}","starred_url":"https://api.github.com/users/JCapriotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCapriotti/subscriptions","organizations_url":"https://api.github.com/users/JCapriotti/orgs","repos_url":"https://api.github.com/users/JCapriotti/repos","events_url":"https://api.github.com/users/JCapriotti/events{/privacy}","received_events_url":"https://api.github.com/users/JCapriotti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T18:59:47Z","updated_at":"2018-06-21T18:59:47Z","closed_at":null,"author_association":"NONE","body":"We are using the Amazon provided AMI `Windows_Server-1803-English-Core-ContainersLatest-*`\r\n\r\nThe default user_data file creates a log file in a location based on the OS Product Name, which for our AMI is \"Windows Server Datacenter\". This causes it to use `C:\\Program Files\\Amazon\\Ec2ConfigService\\Logs\\kitchen-ec2.log` for the location. Unfortunately the \"Logs\" directory does not exist, and so the script fails.\r\n\r\nI assume the correct location may supposed to be *ProgramData*... though without knowing all possible AMI Product Names and log locations they contain, it might be best to just do a call like this: \r\n\r\n> New-Item $logfile -Force\r\n\r\nI'll create a PR for this... feedback on the approach is welcome."}}
{"actor":{"display_login":"JCapriotti"}}