{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8","id":143459126,"html_url":"https://github.com/cyberark/conjur-ami/pull/8","diff_url":"https://github.com/cyberark/conjur-ami/pull/8.diff","patch_url":"https://github.com/cyberark/conjur-ami/pull/8.patch","issue_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/8","number":8,"state":"open","locked":false,"title":"Publish AMI to multiple regions","user":{"login":"dustinmm80","id":684459,"avatar_url":"https://avatars3.githubusercontent.com/u/684459?v=4","gravatar_id":"","url":"https://api.github.com/users/dustinmm80","html_url":"https://github.com/dustinmm80","followers_url":"https://api.github.com/users/dustinmm80/followers","following_url":"https://api.github.com/users/dustinmm80/following{/other_user}","gists_url":"https://api.github.com/users/dustinmm80/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinmm80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinmm80/subscriptions","organizations_url":"https://api.github.com/users/dustinmm80/orgs","repos_url":"https://api.github.com/users/dustinmm80/repos","events_url":"https://api.github.com/users/dustinmm80/events{/privacy}","received_events_url":"https://api.github.com/users/dustinmm80/received_events","type":"User","site_admin":false},"body":"I added a couple params to the pipeline:\r\n\r\n1. `CONJUR_VERSION`, which defaults to 'latest'. This means a new AMI will be created every day, from conjur latest.\r\n2. `PROMOTE_TO_REGIONS`, default to `false`. If a build is run with this flipped on, the AMI will be shared across regions.\r\n\r\nSo the normal workflow is that AMIs are created from conjur latest, which is stable. When we want to do a release, we can trigger this pipeline with `CONJUR_VERSION` = release version and PROMOTE_TO_REGIONS to true.\r\n\r\nWe need to tackle AMI management with this change. Even if we only build AMIs every week we will need a reaper to go through and clear out the old ones. Otherwise this will become quickly unmanageable. Perhaps we can use https://github.com/bonclay7/aws-amicleaner? I think this should be a separate issue.\r\n\r\nAlso, we need to figure out how to share the AMIs with our users. Ideally we'd have an always up to date list on conjur.org. The mechanics of that are what we need to figure out.\r\n\r\nDo not merge yet. I need to make the AMIs public.","created_at":"2017-09-27T17:52:12Z","updated_at":"2017-09-27T17:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cyberark/conjur-ami/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/8/comments","statuses_url":"https://api.github.com/repos/cyberark/conjur-ami/statuses/0d47436ca9fd8d76514dc128cfb67f6f43c0f292","head":{"label":"cyberark:publish-multiple-regions","ref":"publish-multiple-regions","sha":"0d47436ca9fd8d76514dc128cfb67f6f43c0f292","user":{"login":"cyberark","id":30869256,"avatar_url":"https://avatars3.githubusercontent.com/u/30869256?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberark","html_url":"https://github.com/cyberark","followers_url":"https://api.github.com/users/cyberark/followers","following_url":"https://api.github.com/users/cyberark/following{/other_user}","gists_url":"https://api.github.com/users/cyberark/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberark/subscriptions","organizations_url":"https://api.github.com/users/cyberark/orgs","repos_url":"https://api.github.com/users/cyberark/repos","events_url":"https://api.github.com/users/cyberark/events{/privacy}","received_events_url":"https://api.github.com/users/cyberark/received_events","type":"Organization","site_admin":false},"repo":{"id":100295062,"name":"conjur-ami","full_name":"cyberark/conjur-ami","owner":{"login":"cyberark","id":30869256,"avatar_url":"https://avatars3.githubusercontent.com/u/30869256?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberark","html_url":"https://github.com/cyberark","followers_url":"https://api.github.com/users/cyberark/followers","following_url":"https://api.github.com/users/cyberark/following{/other_user}","gists_url":"https://api.github.com/users/cyberark/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberark/subscriptions","organizations_url":"https://api.github.com/users/cyberark/orgs","repos_url":"https://api.github.com/users/cyberark/repos","events_url":"https://api.github.com/users/cyberark/events{/privacy}","received_events_url":"https://api.github.com/users/cyberark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyberark/conjur-ami","description":"Code for building AMIs for Conjur","fork":false,"url":"https://api.github.com/repos/cyberark/conjur-ami","forks_url":"https://api.github.com/repos/cyberark/conjur-ami/forks","keys_url":"https://api.github.com/repos/cyberark/conjur-ami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyberark/conjur-ami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyberark/conjur-ami/teams","hooks_url":"https://api.github.com/repos/cyberark/conjur-ami/hooks","issue_events_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/events{/number}","events_url":"https://api.github.com/repos/cyberark/conjur-ami/events","assignees_url":"https://api.github.com/repos/cyberark/conjur-ami/assignees{/user}","branches_url":"https://api.github.com/repos/cyberark/conjur-ami/branches{/branch}","tags_url":"https://api.github.com/repos/cyberark/conjur-ami/tags","blobs_url":"https://api.github.com/repos/cyberark/conjur-ami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyberark/conjur-ami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyberark/conjur-ami/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyberark/conjur-ami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyberark/conjur-ami/statuses/{sha}","languages_url":"https://api.github.com/repos/cyberark/conjur-ami/languages","stargazers_url":"https://api.github.com/repos/cyberark/conjur-ami/stargazers","contributors_url":"https://api.github.com/repos/cyberark/conjur-ami/contributors","subscribers_url":"https://api.github.com/repos/cyberark/conjur-ami/subscribers","subscription_url":"https://api.github.com/repos/cyberark/conjur-ami/subscription","commits_url":"https://api.github.com/repos/cyberark/conjur-ami/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyberark/conjur-ami/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyberark/conjur-ami/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyberark/conjur-ami/contents/{+path}","compare_url":"https://api.github.com/repos/cyberark/conjur-ami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyberark/conjur-ami/merges","archive_url":"https://api.github.com/repos/cyberark/conjur-ami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyberark/conjur-ami/downloads","issues_url":"https://api.github.com/repos/cyberark/conjur-ami/issues{/number}","pulls_url":"https://api.github.com/repos/cyberark/conjur-ami/pulls{/number}","milestones_url":"https://api.github.com/repos/cyberark/conjur-ami/milestones{/number}","notifications_url":"https://api.github.com/repos/cyberark/conjur-ami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyberark/conjur-ami/labels{/name}","releases_url":"https://api.github.com/repos/cyberark/conjur-ami/releases{/id}","deployments_url":"https://api.github.com/repos/cyberark/conjur-ami/deployments","created_at":"2017-08-14T17:58:05Z","updated_at":"2017-09-22T19:54:54Z","pushed_at":"2017-09-27T17:40:34Z","git_url":"git://github.com/cyberark/conjur-ami.git","ssh_url":"git@github.com:cyberark/conjur-ami.git","clone_url":"https://github.com/cyberark/conjur-ami.git","svn_url":"https://github.com/cyberark/conjur-ami","homepage":"","size":21,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"cyberark:master","ref":"master","sha":"e4e08dcf8ddcf6b1c261b7a66396d7e39082af1c","user":{"login":"cyberark","id":30869256,"avatar_url":"https://avatars3.githubusercontent.com/u/30869256?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberark","html_url":"https://github.com/cyberark","followers_url":"https://api.github.com/users/cyberark/followers","following_url":"https://api.github.com/users/cyberark/following{/other_user}","gists_url":"https://api.github.com/users/cyberark/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberark/subscriptions","organizations_url":"https://api.github.com/users/cyberark/orgs","repos_url":"https://api.github.com/users/cyberark/repos","events_url":"https://api.github.com/users/cyberark/events{/privacy}","received_events_url":"https://api.github.com/users/cyberark/received_events","type":"Organization","site_admin":false},"repo":{"id":100295062,"name":"conjur-ami","full_name":"cyberark/conjur-ami","owner":{"login":"cyberark","id":30869256,"avatar_url":"https://avatars3.githubusercontent.com/u/30869256?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberark","html_url":"https://github.com/cyberark","followers_url":"https://api.github.com/users/cyberark/followers","following_url":"https://api.github.com/users/cyberark/following{/other_user}","gists_url":"https://api.github.com/users/cyberark/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberark/subscriptions","organizations_url":"https://api.github.com/users/cyberark/orgs","repos_url":"https://api.github.com/users/cyberark/repos","events_url":"https://api.github.com/users/cyberark/events{/privacy}","received_events_url":"https://api.github.com/users/cyberark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyberark/conjur-ami","description":"Code for building AMIs for Conjur","fork":false,"url":"https://api.github.com/repos/cyberark/conjur-ami","forks_url":"https://api.github.com/repos/cyberark/conjur-ami/forks","keys_url":"https://api.github.com/repos/cyberark/conjur-ami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyberark/conjur-ami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyberark/conjur-ami/teams","hooks_url":"https://api.github.com/repos/cyberark/conjur-ami/hooks","issue_events_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/events{/number}","events_url":"https://api.github.com/repos/cyberark/conjur-ami/events","assignees_url":"https://api.github.com/repos/cyberark/conjur-ami/assignees{/user}","branches_url":"https://api.github.com/repos/cyberark/conjur-ami/branches{/branch}","tags_url":"https://api.github.com/repos/cyberark/conjur-ami/tags","blobs_url":"https://api.github.com/repos/cyberark/conjur-ami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyberark/conjur-ami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyberark/conjur-ami/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyberark/conjur-ami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyberark/conjur-ami/statuses/{sha}","languages_url":"https://api.github.com/repos/cyberark/conjur-ami/languages","stargazers_url":"https://api.github.com/repos/cyberark/conjur-ami/stargazers","contributors_url":"https://api.github.com/repos/cyberark/conjur-ami/contributors","subscribers_url":"https://api.github.com/repos/cyberark/conjur-ami/subscribers","subscription_url":"https://api.github.com/repos/cyberark/conjur-ami/subscription","commits_url":"https://api.github.com/repos/cyberark/conjur-ami/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyberark/conjur-ami/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyberark/conjur-ami/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyberark/conjur-ami/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyberark/conjur-ami/contents/{+path}","compare_url":"https://api.github.com/repos/cyberark/conjur-ami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyberark/conjur-ami/merges","archive_url":"https://api.github.com/repos/cyberark/conjur-ami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyberark/conjur-ami/downloads","issues_url":"https://api.github.com/repos/cyberark/conjur-ami/issues{/number}","pulls_url":"https://api.github.com/repos/cyberark/conjur-ami/pulls{/number}","milestones_url":"https://api.github.com/repos/cyberark/conjur-ami/milestones{/number}","notifications_url":"https://api.github.com/repos/cyberark/conjur-ami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyberark/conjur-ami/labels{/name}","releases_url":"https://api.github.com/repos/cyberark/conjur-ami/releases{/id}","deployments_url":"https://api.github.com/repos/cyberark/conjur-ami/deployments","created_at":"2017-08-14T17:58:05Z","updated_at":"2017-09-22T19:54:54Z","pushed_at":"2017-09-27T17:40:34Z","git_url":"git://github.com/cyberark/conjur-ami.git","ssh_url":"git@github.com:cyberark/conjur-ami.git","clone_url":"https://github.com/cyberark/conjur-ami.git","svn_url":"https://github.com/cyberark/conjur-ami","homepage":"","size":21,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8"},"html":{"href":"https://github.com/cyberark/conjur-ami/pull/8"},"issue":{"href":"https://api.github.com/repos/cyberark/conjur-ami/issues/8"},"comments":{"href":"https://api.github.com/repos/cyberark/conjur-ami/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cyberark/conjur-ami/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyberark/conjur-ami/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cyberark/conjur-ami/statuses/0d47436ca9fd8d76514dc128cfb67f6f43c0f292"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":10,"additions":84,"deletions":56,"changed_files":16}}
{"actor":{"display_login":"dustinmm80"}}