{"action":"closed","number":460,"pull_request":{"url":"https://api.github.com/repos/docker/infrakit/pulls/460","id":113860219,"html_url":"https://github.com/docker/infrakit/pull/460","diff_url":"https://github.com/docker/infrakit/pull/460.diff","patch_url":"https://github.com/docker/infrakit/pull/460.patch","issue_url":"https://api.github.com/repos/docker/infrakit/issues/460","number":460,"state":"closed","locked":false,"title":"Terraform plugin - base64 encoded userdata for AWS and DigitalOcean","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars3.githubusercontent.com/u/11839374?v=3","gravatar_id":"","url":"https://api.github.com/users/ndegory","html_url":"https://github.com/ndegory","followers_url":"https://api.github.com/users/ndegory/followers","following_url":"https://api.github.com/users/ndegory/following{/other_user}","gists_url":"https://api.github.com/users/ndegory/gists{/gist_id}","starred_url":"https://api.github.com/users/ndegory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndegory/subscriptions","organizations_url":"https://api.github.com/users/ndegory/orgs","repos_url":"https://api.github.com/users/ndegory/repos","events_url":"https://api.github.com/users/ndegory/events{/privacy}","received_events_url":"https://api.github.com/users/ndegory/received_events","type":"User","site_admin":false},"body":"## context\r\nTerraform accepts the userdata for AWS and DigitalOcean raw or base64 encoded (since https://github.com/hashicorp/terraform/pull/6140). The latter is safer because it won't be interpreted by Terraform and won't lead to JSON parsing issues.\r\n\r\nIf not already encoded, a user data script can fail the `terraform apply` phase on the generated tf.json file. In particular, the syntax ${var:-default} in the user_data field (from an `Init` field in the InfraKit configuration) leads to an error when parsing the colon character.\r\n\r\n## content of the PR\r\n- user data is base64 encoded by default for AWS and DigitalOcean with the Terraform instance plugin\r\n","created_at":"2017-04-03T05:31:44Z","updated_at":"2017-04-04T17:17:21Z","closed_at":"2017-04-04T17:17:21Z","merged_at":"2017-04-04T17:17:21Z","merge_commit_sha":"05d22a565661816afc01355a2df7decd1e491317","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/docker/infrakit/pulls/460/commits","review_comments_url":"https://api.github.com/repos/docker/infrakit/pulls/460/comments","review_comment_url":"https://api.github.com/repos/docker/infrakit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/infrakit/issues/460/comments","statuses_url":"https://api.github.com/repos/docker/infrakit/statuses/66e5704d069743ed96ff8d9f1288c2718e60a297","head":{"label":"ndegory:userdatab64","ref":"userdatab64","sha":"66e5704d069743ed96ff8d9f1288c2718e60a297","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars3.githubusercontent.com/u/11839374?v=3","gravatar_id":"","url":"https://api.github.com/users/ndegory","html_url":"https://github.com/ndegory","followers_url":"https://api.github.com/users/ndegory/followers","following_url":"https://api.github.com/users/ndegory/following{/other_user}","gists_url":"https://api.github.com/users/ndegory/gists{/gist_id}","starred_url":"https://api.github.com/users/ndegory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndegory/subscriptions","organizations_url":"https://api.github.com/users/ndegory/orgs","repos_url":"https://api.github.com/users/ndegory/repos","events_url":"https://api.github.com/users/ndegory/events{/privacy}","received_events_url":"https://api.github.com/users/ndegory/received_events","type":"User","site_admin":false},"repo":{"id":81595559,"name":"infrakit","full_name":"ndegory/infrakit","owner":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars3.githubusercontent.com/u/11839374?v=3","gravatar_id":"","url":"https://api.github.com/users/ndegory","html_url":"https://github.com/ndegory","followers_url":"https://api.github.com/users/ndegory/followers","following_url":"https://api.github.com/users/ndegory/following{/other_user}","gists_url":"https://api.github.com/users/ndegory/gists{/gist_id}","starred_url":"https://api.github.com/users/ndegory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndegory/subscriptions","organizations_url":"https://api.github.com/users/ndegory/orgs","repos_url":"https://api.github.com/users/ndegory/repos","events_url":"https://api.github.com/users/ndegory/events{/privacy}","received_events_url":"https://api.github.com/users/ndegory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndegory/infrakit","description":"A toolkit for creating and managing declarative, self-healing infrastructure.","fork":true,"url":"https://api.github.com/repos/ndegory/infrakit","forks_url":"https://api.github.com/repos/ndegory/infrakit/forks","keys_url":"https://api.github.com/repos/ndegory/infrakit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndegory/infrakit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndegory/infrakit/teams","hooks_url":"https://api.github.com/repos/ndegory/infrakit/hooks","issue_events_url":"https://api.github.com/repos/ndegory/infrakit/issues/events{/number}","events_url":"https://api.github.com/repos/ndegory/infrakit/events","assignees_url":"https://api.github.com/repos/ndegory/infrakit/assignees{/user}","branches_url":"https://api.github.com/repos/ndegory/infrakit/branches{/branch}","tags_url":"https://api.github.com/repos/ndegory/infrakit/tags","blobs_url":"https://api.github.com/repos/ndegory/infrakit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndegory/infrakit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndegory/infrakit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndegory/infrakit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndegory/infrakit/statuses/{sha}","languages_url":"https://api.github.com/repos/ndegory/infrakit/languages","stargazers_url":"https://api.github.com/repos/ndegory/infrakit/stargazers","contributors_url":"https://api.github.com/repos/ndegory/infrakit/contributors","subscribers_url":"https://api.github.com/repos/ndegory/infrakit/subscribers","subscription_url":"https://api.github.com/repos/ndegory/infrakit/subscription","commits_url":"https://api.github.com/repos/ndegory/infrakit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndegory/infrakit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndegory/infrakit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndegory/infrakit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndegory/infrakit/contents/{+path}","compare_url":"https://api.github.com/repos/ndegory/infrakit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndegory/infrakit/merges","archive_url":"https://api.github.com/repos/ndegory/infrakit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndegory/infrakit/downloads","issues_url":"https://api.github.com/repos/ndegory/infrakit/issues{/number}","pulls_url":"https://api.github.com/repos/ndegory/infrakit/pulls{/number}","milestones_url":"https://api.github.com/repos/ndegory/infrakit/milestones{/number}","notifications_url":"https://api.github.com/repos/ndegory/infrakit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndegory/infrakit/labels{/name}","releases_url":"https://api.github.com/repos/ndegory/infrakit/releases{/id}","deployments_url":"https://api.github.com/repos/ndegory/infrakit/deployments","created_at":"2017-02-10T18:42:44Z","updated_at":"2017-02-10T18:42:46Z","pushed_at":"2017-04-04T15:39:37Z","git_url":"git://github.com/ndegory/infrakit.git","ssh_url":"git@github.com:ndegory/infrakit.git","clone_url":"https://github.com/ndegory/infrakit.git","svn_url":"https://github.com/ndegory/infrakit","homepage":"","size":17321,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"cb420e3e50ea60afe58538b1d3cab1cb14059433","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars2.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":55811475,"name":"infrakit","full_name":"docker/infrakit","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars2.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/infrakit","description":"A toolkit for creating and managing declarative, self-healing infrastructure.","fork":false,"url":"https://api.github.com/repos/docker/infrakit","forks_url":"https://api.github.com/repos/docker/infrakit/forks","keys_url":"https://api.github.com/repos/docker/infrakit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/infrakit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/infrakit/teams","hooks_url":"https://api.github.com/repos/docker/infrakit/hooks","issue_events_url":"https://api.github.com/repos/docker/infrakit/issues/events{/number}","events_url":"https://api.github.com/repos/docker/infrakit/events","assignees_url":"https://api.github.com/repos/docker/infrakit/assignees{/user}","branches_url":"https://api.github.com/repos/docker/infrakit/branches{/branch}","tags_url":"https://api.github.com/repos/docker/infrakit/tags","blobs_url":"https://api.github.com/repos/docker/infrakit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/infrakit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/infrakit/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/infrakit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/infrakit/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/infrakit/languages","stargazers_url":"https://api.github.com/repos/docker/infrakit/stargazers","contributors_url":"https://api.github.com/repos/docker/infrakit/contributors","subscribers_url":"https://api.github.com/repos/docker/infrakit/subscribers","subscription_url":"https://api.github.com/repos/docker/infrakit/subscription","commits_url":"https://api.github.com/repos/docker/infrakit/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/infrakit/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/infrakit/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/infrakit/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/infrakit/contents/{+path}","compare_url":"https://api.github.com/repos/docker/infrakit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/infrakit/merges","archive_url":"https://api.github.com/repos/docker/infrakit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/infrakit/downloads","issues_url":"https://api.github.com/repos/docker/infrakit/issues{/number}","pulls_url":"https://api.github.com/repos/docker/infrakit/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/infrakit/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/infrakit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/infrakit/labels{/name}","releases_url":"https://api.github.com/repos/docker/infrakit/releases{/id}","deployments_url":"https://api.github.com/repos/docker/infrakit/deployments","created_at":"2016-04-08T21:43:02Z","updated_at":"2017-04-04T08:03:47Z","pushed_at":"2017-04-04T17:17:21Z","git_url":"git://github.com/docker/infrakit.git","ssh_url":"git@github.com:docker/infrakit.git","clone_url":"https://github.com/docker/infrakit.git","svn_url":"https://github.com/docker/infrakit","homepage":"","size":17105,"stargazers_count":1323,"watchers_count":1323,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":25,"forks":123,"open_issues":25,"watchers":1323,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/infrakit/pulls/460"},"html":{"href":"https://github.com/docker/infrakit/pull/460"},"issue":{"href":"https://api.github.com/repos/docker/infrakit/issues/460"},"comments":{"href":"https://api.github.com/repos/docker/infrakit/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/infrakit/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/infrakit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/infrakit/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/docker/infrakit/statuses/66e5704d069743ed96ff8d9f1288c2718e60a297"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"chungers","id":299504,"avatar_url":"https://avatars2.githubusercontent.com/u/299504?v=3","gravatar_id":"","url":"https://api.github.com/users/chungers","html_url":"https://github.com/chungers","followers_url":"https://api.github.com/users/chungers/followers","following_url":"https://api.github.com/users/chungers/following{/other_user}","gists_url":"https://api.github.com/users/chungers/gists{/gist_id}","starred_url":"https://api.github.com/users/chungers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chungers/subscriptions","organizations_url":"https://api.github.com/users/chungers/orgs","repos_url":"https://api.github.com/users/chungers/repos","events_url":"https://api.github.com/users/chungers/events{/privacy}","received_events_url":"https://api.github.com/users/chungers/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":8,"deletions":6,"changed_files":2}}
{"actor":{"display_login":"chungers"}}