{"action":"created","comment":{"url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/comments/230170632","pull_request_review_id":170843394,"id":230170632,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDE3MDYzMg==","diff_hunk":"@@ -0,0 +1,189 @@\n+schemaVersion: '2.2'\n+description: 'Use this document to run Ansible playbooks on Amazon EC2 managed instances.\n+  Specify either playbook YAML text, playbook URL, or URL. If you specify multiple\n+  values, precedence order is: url, PlaybookURL, and then playbook. If you specify\n+  URL, everything from that point and below in S3 will be synced to the local machine\n+  (including any roles and custom modules). Use PlaybookFile for the playbook to run\n+  from that URL. Use the extravar parameter to send runtime variables to the Ansible\n+  execution. Use the check parameter to perform a dry run of the Ansible execution.\n+  The output of the dry run shows the changes that will be made when the playbook\n+  is executed. This version also supports zip files via http or s3 URLs. It also supports\n+  providing an s3 URL for a directory containing the playbook files. '\n+parameters:\n+  playbook:\n+    type: String\n+    description: (Optional) If you don't specify a URL, then you must specify playbook\n+      YAML in this field.\n+    default: ''\n+    displayType: textarea\n+  PlaybookURL:\n+    type: String\n+    description: '(Optional) If you don''t specify playbook YAML, then you must specify\n+      a URL where the playbook is stored. This url can refer to a playbook yaml file,\n+      an s3 prefix, or an archive (TAR GZIP/BZIP2, Zip) containing all your playbook\n+      artifacts. You can specify the URL in the following formats: http://example.com/playbook.yml\n+      or s3://examplebucket/playbook.url. You can also specify an s3 URL for a directory\n+      containing the playbooks like s3://mybucket/myplabooks/.  For security reasons,\n+      you can''t specify a URL with quotes.'\n+    default: ''\n+    allowedPattern: ^\\s*$|^(http|https|s3)://[^']*$\n+  PlaybookFile:\n+    type: String\n+    description: (Optional) The playbook file to run (including relative path), when\n+      specifying a playbook bundle like a zip file or an s3 path to a folder in a\n+      bucket\n+    default: ssm-playbook.yml","path":"Documents/Command/AWS-RunAnsible/AWS-RunAnsible.yaml","position":35,"original_position":35,"commit_id":"99a70ce3b86060c6d8f9e1512094d4b97deaf950","original_commit_id":"99a70ce3b86060c6d8f9e1512094d4b97deaf950","user":{"login":"alemartini","id":38770342,"node_id":"MDQ6VXNlcjM4NzcwMzQy","avatar_url":"https://avatars2.githubusercontent.com/u/38770342?v=4","gravatar_id":"","url":"https://api.github.com/users/alemartini","html_url":"https://github.com/alemartini","followers_url":"https://api.github.com/users/alemartini/followers","following_url":"https://api.github.com/users/alemartini/following{/other_user}","gists_url":"https://api.github.com/users/alemartini/gists{/gist_id}","starred_url":"https://api.github.com/users/alemartini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemartini/subscriptions","organizations_url":"https://api.github.com/users/alemartini/orgs","repos_url":"https://api.github.com/users/alemartini/repos","events_url":"https://api.github.com/users/alemartini/events{/privacy}","received_events_url":"https://api.github.com/users/alemartini/received_events","type":"User","site_admin":false},"body":"Can we add input validation, i.e. an allowedPatterns that ensures a .yml file is provided?","created_at":"2018-11-01T19:37:23Z","updated_at":"2018-11-01T19:50:13Z","html_url":"https://github.com/awslabs/aws-systems-manager/pull/31#discussion_r230170632","pull_request_url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/comments/230170632"},"html":{"href":"https://github.com/awslabs/aws-systems-manager/pull/31#discussion_r230170632"},"pull_request":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31","id":227729653,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NzI5NjUz","html_url":"https://github.com/awslabs/aws-systems-manager/pull/31","diff_url":"https://github.com/awslabs/aws-systems-manager/pull/31.diff","patch_url":"https://github.com/awslabs/aws-systems-manager/pull/31.patch","issue_url":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/31","number":31,"state":"open","locked":false,"title":"Adding the AWS-RunAnsible SSM Document","user":{"login":"silvax","id":1258588,"node_id":"MDQ6VXNlcjEyNTg1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1258588?v=4","gravatar_id":"","url":"https://api.github.com/users/silvax","html_url":"https://github.com/silvax","followers_url":"https://api.github.com/users/silvax/followers","following_url":"https://api.github.com/users/silvax/following{/other_user}","gists_url":"https://api.github.com/users/silvax/gists{/gist_id}","starred_url":"https://api.github.com/users/silvax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvax/subscriptions","organizations_url":"https://api.github.com/users/silvax/orgs","repos_url":"https://api.github.com/users/silvax/repos","events_url":"https://api.github.com/users/silvax/events{/privacy}","received_events_url":"https://api.github.com/users/silvax/received_events","type":"User","site_admin":false},"body":"Issue #, if available: None\r\n\r\nDescription of changes: Adding AWS-RunAnsible documet. This SSM Document allows to run Ansible automation using complex playbooks. It also supports verbose level. The playbooks can be supplied via a web URL, S3 location or in a Zip file. \r\n\r\nBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.\r\n","created_at":"2018-11-01T19:18:12Z","updated_at":"2018-11-01T19:50:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f60577fc80a8aa6de37ea7e31f81dafacdb60f3f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31/commits","review_comments_url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31/comments","review_comment_url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/31/comments","statuses_url":"https://api.github.com/repos/awslabs/aws-systems-manager/statuses/99a70ce3b86060c6d8f9e1512094d4b97deaf950","head":{"label":"silvax:ansiblev2","ref":"ansiblev2","sha":"99a70ce3b86060c6d8f9e1512094d4b97deaf950","user":{"login":"silvax","id":1258588,"node_id":"MDQ6VXNlcjEyNTg1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1258588?v=4","gravatar_id":"","url":"https://api.github.com/users/silvax","html_url":"https://github.com/silvax","followers_url":"https://api.github.com/users/silvax/followers","following_url":"https://api.github.com/users/silvax/following{/other_user}","gists_url":"https://api.github.com/users/silvax/gists{/gist_id}","starred_url":"https://api.github.com/users/silvax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvax/subscriptions","organizations_url":"https://api.github.com/users/silvax/orgs","repos_url":"https://api.github.com/users/silvax/repos","events_url":"https://api.github.com/users/silvax/events{/privacy}","received_events_url":"https://api.github.com/users/silvax/received_events","type":"User","site_admin":false},"repo":{"id":155741275,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU3NDEyNzU=","name":"aws-systems-manager","full_name":"silvax/aws-systems-manager","private":false,"owner":{"login":"silvax","id":1258588,"node_id":"MDQ6VXNlcjEyNTg1ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1258588?v=4","gravatar_id":"","url":"https://api.github.com/users/silvax","html_url":"https://github.com/silvax","followers_url":"https://api.github.com/users/silvax/followers","following_url":"https://api.github.com/users/silvax/following{/other_user}","gists_url":"https://api.github.com/users/silvax/gists{/gist_id}","starred_url":"https://api.github.com/users/silvax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvax/subscriptions","organizations_url":"https://api.github.com/users/silvax/orgs","repos_url":"https://api.github.com/users/silvax/repos","events_url":"https://api.github.com/users/silvax/events{/privacy}","received_events_url":"https://api.github.com/users/silvax/received_events","type":"User","site_admin":false},"html_url":"https://github.com/silvax/aws-systems-manager","description":"Artifacts for use with AWS Systems Manager","fork":true,"url":"https://api.github.com/repos/silvax/aws-systems-manager","forks_url":"https://api.github.com/repos/silvax/aws-systems-manager/forks","keys_url":"https://api.github.com/repos/silvax/aws-systems-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silvax/aws-systems-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silvax/aws-systems-manager/teams","hooks_url":"https://api.github.com/repos/silvax/aws-systems-manager/hooks","issue_events_url":"https://api.github.com/repos/silvax/aws-systems-manager/issues/events{/number}","events_url":"https://api.github.com/repos/silvax/aws-systems-manager/events","assignees_url":"https://api.github.com/repos/silvax/aws-systems-manager/assignees{/user}","branches_url":"https://api.github.com/repos/silvax/aws-systems-manager/branches{/branch}","tags_url":"https://api.github.com/repos/silvax/aws-systems-manager/tags","blobs_url":"https://api.github.com/repos/silvax/aws-systems-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silvax/aws-systems-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silvax/aws-systems-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/silvax/aws-systems-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silvax/aws-systems-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/silvax/aws-systems-manager/languages","stargazers_url":"https://api.github.com/repos/silvax/aws-systems-manager/stargazers","contributors_url":"https://api.github.com/repos/silvax/aws-systems-manager/contributors","subscribers_url":"https://api.github.com/repos/silvax/aws-systems-manager/subscribers","subscription_url":"https://api.github.com/repos/silvax/aws-systems-manager/subscription","commits_url":"https://api.github.com/repos/silvax/aws-systems-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/silvax/aws-systems-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/silvax/aws-systems-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/silvax/aws-systems-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/silvax/aws-systems-manager/contents/{+path}","compare_url":"https://api.github.com/repos/silvax/aws-systems-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silvax/aws-systems-manager/merges","archive_url":"https://api.github.com/repos/silvax/aws-systems-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silvax/aws-systems-manager/downloads","issues_url":"https://api.github.com/repos/silvax/aws-systems-manager/issues{/number}","pulls_url":"https://api.github.com/repos/silvax/aws-systems-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/silvax/aws-systems-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/silvax/aws-systems-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silvax/aws-systems-manager/labels{/name}","releases_url":"https://api.github.com/repos/silvax/aws-systems-manager/releases{/id}","deployments_url":"https://api.github.com/repos/silvax/aws-systems-manager/deployments","created_at":"2018-11-01T16:08:40Z","updated_at":"2018-11-01T16:08:42Z","pushed_at":"2018-11-01T19:15:53Z","git_url":"git://github.com/silvax/aws-systems-manager.git","ssh_url":"git@github.com:silvax/aws-systems-manager.git","clone_url":"https://github.com/silvax/aws-systems-manager.git","svn_url":"https://github.com/silvax/aws-systems-manager","homepage":"","size":244,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awslabs:master","ref":"master","sha":"c94bcb366bb706b15535459c10fe771246ce064e","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":87671731,"node_id":"MDEwOlJlcG9zaXRvcnk4NzY3MTczMQ==","name":"aws-systems-manager","full_name":"awslabs/aws-systems-manager","private":false,"owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awslabs/aws-systems-manager","description":"Artifacts for use with AWS Systems Manager","fork":false,"url":"https://api.github.com/repos/awslabs/aws-systems-manager","forks_url":"https://api.github.com/repos/awslabs/aws-systems-manager/forks","keys_url":"https://api.github.com/repos/awslabs/aws-systems-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/aws-systems-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/aws-systems-manager/teams","hooks_url":"https://api.github.com/repos/awslabs/aws-systems-manager/hooks","issue_events_url":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/aws-systems-manager/events","assignees_url":"https://api.github.com/repos/awslabs/aws-systems-manager/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/aws-systems-manager/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/aws-systems-manager/tags","blobs_url":"https://api.github.com/repos/awslabs/aws-systems-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/aws-systems-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/aws-systems-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/aws-systems-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/aws-systems-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/aws-systems-manager/languages","stargazers_url":"https://api.github.com/repos/awslabs/aws-systems-manager/stargazers","contributors_url":"https://api.github.com/repos/awslabs/aws-systems-manager/contributors","subscribers_url":"https://api.github.com/repos/awslabs/aws-systems-manager/subscribers","subscription_url":"https://api.github.com/repos/awslabs/aws-systems-manager/subscription","commits_url":"https://api.github.com/repos/awslabs/aws-systems-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/aws-systems-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/aws-systems-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/aws-systems-manager/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/aws-systems-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/aws-systems-manager/merges","archive_url":"https://api.github.com/repos/awslabs/aws-systems-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/aws-systems-manager/downloads","issues_url":"https://api.github.com/repos/awslabs/aws-systems-manager/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/aws-systems-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/aws-systems-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/aws-systems-manager/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/aws-systems-manager/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/aws-systems-manager/deployments","created_at":"2017-04-09T00:06:56Z","updated_at":"2018-10-16T21:41:28Z","pushed_at":"2018-11-01T19:18:13Z","git_url":"git://github.com/awslabs/aws-systems-manager.git","ssh_url":"git@github.com:awslabs/aws-systems-manager.git","clone_url":"https://github.com/awslabs/aws-systems-manager.git","svn_url":"https://github.com/awslabs/aws-systems-manager","homepage":"","size":244,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":17,"open_issues":11,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31"},"html":{"href":"https://github.com/awslabs/aws-systems-manager/pull/31"},"issue":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/31"},"comments":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/aws-systems-manager/statuses/99a70ce3b86060c6d8f9e1512094d4b97deaf950"}},"author_association":"NONE"}}
{"actor":{"display_login":"alemartini"}}