{"action":"closed","number":1896,"pull_request":{"url":"https://api.github.com/repos/aws/aws-cli/pulls/1896","id":65395540,"html_url":"https://github.com/aws/aws-cli/pull/1896","diff_url":"https://github.com/aws/aws-cli/pull/1896.diff","patch_url":"https://github.com/aws/aws-cli/pull/1896.patch","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/1896","number":1896,"state":"closed","locked":false,"title":"Remove extra ARN path string for registering on premise instance","user":{"login":"dougfultz","id":14137949,"avatar_url":"https://avatars.githubusercontent.com/u/14137949?v=3","gravatar_id":"","url":"https://api.github.com/users/dougfultz","html_url":"https://github.com/dougfultz","followers_url":"https://api.github.com/users/dougfultz/followers","following_url":"https://api.github.com/users/dougfultz/following{/other_user}","gists_url":"https://api.github.com/users/dougfultz/gists{/gist_id}","starred_url":"https://api.github.com/users/dougfultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougfultz/subscriptions","organizations_url":"https://api.github.com/users/dougfultz/orgs","repos_url":"https://api.github.com/users/dougfultz/repos","events_url":"https://api.github.com/users/dougfultz/events{/privacy}","received_events_url":"https://api.github.com/users/dougfultz/received_events","type":"User","site_admin":false},"body":"When attempting to register an on premise instance for code deploy.  The ARN generated contains a path that does not exist in IAM, which raises the InvalidIamUserArnException error.\r\n\r\n```\r\naws1:~$ aws deploy register --instance-name `hostname`\r\nCreating the IAM user... DONE\r\nIamUserArn: arn:aws:iam::XXXXXXXXXXXX:user/AWS/CodeDeploy/aws1\r\nCreating the IAM user access key... DONE\r\nCreating the IAM user policy... DONE\r\nPolicyName: codedeploy-agent\r\nCreating the on-premises instance configuration file named codedeploy.onpremises.yml...DONE\r\nRegistering the on-premises instance... ERROR\r\nA client error (InvalidIamUserArnException) occurred when calling the RegisterOnPremisesInstance operation: Iam User ARN arn:aws:iam::XXXXXXXXXXXX:user/AWS/CodeDeploy/aws1 is not in a valid format\r\nRegister the on-premises instance by following the instructions in \"Configure Existing On-Premises Instances by Using AWS CodeDeploy\" in the AWS CodeDeploy User Guide.\r\n```\r\nChanging and specifying the ARN without the \"AWS/CodeDeploy/\" portion allows the instance to be registered.","created_at":"2016-04-06T00:56:40Z","updated_at":"2016-08-29T19:43:12Z","closed_at":"2016-08-29T19:43:12Z","merged_at":null,"merge_commit_sha":"5c3b8ff90513fcfcade7ac17baef5f6fe98b352e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws/aws-cli/pulls/1896/commits","review_comments_url":"https://api.github.com/repos/aws/aws-cli/pulls/1896/comments","review_comment_url":"https://api.github.com/repos/aws/aws-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/1896/comments","statuses_url":"https://api.github.com/repos/aws/aws-cli/statuses/759183ab88c892d79724c90dd2b725eae1a8676d","head":{"label":"dougfultz:develop","ref":"develop","sha":"759183ab88c892d79724c90dd2b725eae1a8676d","user":{"login":"dougfultz","id":14137949,"avatar_url":"https://avatars.githubusercontent.com/u/14137949?v=3","gravatar_id":"","url":"https://api.github.com/users/dougfultz","html_url":"https://github.com/dougfultz","followers_url":"https://api.github.com/users/dougfultz/followers","following_url":"https://api.github.com/users/dougfultz/following{/other_user}","gists_url":"https://api.github.com/users/dougfultz/gists{/gist_id}","starred_url":"https://api.github.com/users/dougfultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougfultz/subscriptions","organizations_url":"https://api.github.com/users/dougfultz/orgs","repos_url":"https://api.github.com/users/dougfultz/repos","events_url":"https://api.github.com/users/dougfultz/events{/privacy}","received_events_url":"https://api.github.com/users/dougfultz/received_events","type":"User","site_admin":false},"repo":{"id":55564243,"name":"aws-cli","full_name":"dougfultz/aws-cli","owner":{"login":"dougfultz","id":14137949,"avatar_url":"https://avatars.githubusercontent.com/u/14137949?v=3","gravatar_id":"","url":"https://api.github.com/users/dougfultz","html_url":"https://github.com/dougfultz","followers_url":"https://api.github.com/users/dougfultz/followers","following_url":"https://api.github.com/users/dougfultz/following{/other_user}","gists_url":"https://api.github.com/users/dougfultz/gists{/gist_id}","starred_url":"https://api.github.com/users/dougfultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougfultz/subscriptions","organizations_url":"https://api.github.com/users/dougfultz/orgs","repos_url":"https://api.github.com/users/dougfultz/repos","events_url":"https://api.github.com/users/dougfultz/events{/privacy}","received_events_url":"https://api.github.com/users/dougfultz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dougfultz/aws-cli","description":"Universal Command Line Interface for Amazon Web Services","fork":true,"url":"https://api.github.com/repos/dougfultz/aws-cli","forks_url":"https://api.github.com/repos/dougfultz/aws-cli/forks","keys_url":"https://api.github.com/repos/dougfultz/aws-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dougfultz/aws-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dougfultz/aws-cli/teams","hooks_url":"https://api.github.com/repos/dougfultz/aws-cli/hooks","issue_events_url":"https://api.github.com/repos/dougfultz/aws-cli/issues/events{/number}","events_url":"https://api.github.com/repos/dougfultz/aws-cli/events","assignees_url":"https://api.github.com/repos/dougfultz/aws-cli/assignees{/user}","branches_url":"https://api.github.com/repos/dougfultz/aws-cli/branches{/branch}","tags_url":"https://api.github.com/repos/dougfultz/aws-cli/tags","blobs_url":"https://api.github.com/repos/dougfultz/aws-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dougfultz/aws-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dougfultz/aws-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dougfultz/aws-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dougfultz/aws-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dougfultz/aws-cli/languages","stargazers_url":"https://api.github.com/repos/dougfultz/aws-cli/stargazers","contributors_url":"https://api.github.com/repos/dougfultz/aws-cli/contributors","subscribers_url":"https://api.github.com/repos/dougfultz/aws-cli/subscribers","subscription_url":"https://api.github.com/repos/dougfultz/aws-cli/subscription","commits_url":"https://api.github.com/repos/dougfultz/aws-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dougfultz/aws-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dougfultz/aws-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dougfultz/aws-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dougfultz/aws-cli/contents/{+path}","compare_url":"https://api.github.com/repos/dougfultz/aws-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dougfultz/aws-cli/merges","archive_url":"https://api.github.com/repos/dougfultz/aws-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dougfultz/aws-cli/downloads","issues_url":"https://api.github.com/repos/dougfultz/aws-cli/issues{/number}","pulls_url":"https://api.github.com/repos/dougfultz/aws-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dougfultz/aws-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dougfultz/aws-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dougfultz/aws-cli/labels{/name}","releases_url":"https://api.github.com/repos/dougfultz/aws-cli/releases{/id}","deployments_url":"https://api.github.com/repos/dougfultz/aws-cli/deployments","created_at":"2016-04-06T00:49:57Z","updated_at":"2016-04-06T00:50:05Z","pushed_at":"2016-04-06T00:53:48Z","git_url":"git://github.com/dougfultz/aws-cli.git","ssh_url":"git@github.com:dougfultz/aws-cli.git","clone_url":"https://github.com/dougfultz/aws-cli.git","svn_url":"https://github.com/dougfultz/aws-cli","homepage":null,"size":8046,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"aws:develop","ref":"develop","sha":"2a93eaf4d499e6148bf9215d63d0150ed6998e7a","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":6780767,"name":"aws-cli","full_name":"aws/aws-cli","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/aws-cli","description":"Universal Command Line Interface for Amazon Web Services","fork":false,"url":"https://api.github.com/repos/aws/aws-cli","forks_url":"https://api.github.com/repos/aws/aws-cli/forks","keys_url":"https://api.github.com/repos/aws/aws-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/aws-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/aws-cli/teams","hooks_url":"https://api.github.com/repos/aws/aws-cli/hooks","issue_events_url":"https://api.github.com/repos/aws/aws-cli/issues/events{/number}","events_url":"https://api.github.com/repos/aws/aws-cli/events","assignees_url":"https://api.github.com/repos/aws/aws-cli/assignees{/user}","branches_url":"https://api.github.com/repos/aws/aws-cli/branches{/branch}","tags_url":"https://api.github.com/repos/aws/aws-cli/tags","blobs_url":"https://api.github.com/repos/aws/aws-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/aws-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/aws-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/aws-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/aws-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/aws-cli/languages","stargazers_url":"https://api.github.com/repos/aws/aws-cli/stargazers","contributors_url":"https://api.github.com/repos/aws/aws-cli/contributors","subscribers_url":"https://api.github.com/repos/aws/aws-cli/subscribers","subscription_url":"https://api.github.com/repos/aws/aws-cli/subscription","commits_url":"https://api.github.com/repos/aws/aws-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/aws-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/aws-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/aws-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/aws-cli/contents/{+path}","compare_url":"https://api.github.com/repos/aws/aws-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/aws-cli/merges","archive_url":"https://api.github.com/repos/aws/aws-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/aws-cli/downloads","issues_url":"https://api.github.com/repos/aws/aws-cli/issues{/number}","pulls_url":"https://api.github.com/repos/aws/aws-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/aws-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/aws-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/aws-cli/labels{/name}","releases_url":"https://api.github.com/repos/aws/aws-cli/releases{/id}","deployments_url":"https://api.github.com/repos/aws/aws-cli/deployments","created_at":"2012-11-20T16:07:36Z","updated_at":"2016-08-29T19:26:42Z","pushed_at":"2016-08-29T17:51:03Z","git_url":"git://github.com/aws/aws-cli.git","ssh_url":"git@github.com:aws/aws-cli.git","clone_url":"https://github.com/aws/aws-cli.git","svn_url":"https://github.com/aws/aws-cli","homepage":null,"size":12597,"stargazers_count":4114,"watchers_count":4114,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":649,"mirror_url":null,"open_issues_count":171,"forks":649,"open_issues":171,"watchers":4114,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1896"},"html":{"href":"https://github.com/aws/aws-cli/pull/1896"},"issue":{"href":"https://api.github.com/repos/aws/aws-cli/issues/1896"},"comments":{"href":"https://api.github.com/repos/aws/aws-cli/issues/1896/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1896/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/aws-cli/pulls/1896/commits"},"statuses":{"href":"https://api.github.com/repos/aws/aws-cli/statuses/759183ab88c892d79724c90dd2b725eae1a8676d"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"jamesls"}}