{"action":"created","comment":{"url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/comments/222807316","pull_request_review_id":161784782,"id":222807316,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjgwNzMxNg==","diff_hunk":"@@ -0,0 +1,77 @@\n+// Copyright 2015-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\"). You may\n+// not use this file except in compliance with the License. A copy of the\n+// License is located at\n+//\n+//\thttp://aws.amazon.com/apache2.0/\n+//\n+// or in the \"license\" file accompanying this file. This file is distributed\n+// on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either\n+// express or implied. See the License for the specific language governing\n+// permissions and limitations under the License.\n+\n+package regcreds\n+\n+import (\n+\t\"encoding/json\"\n+\n+\tkmsClient \"github.com/aws/amazon-ecs-cli/ecs-cli/modules/clients/aws/kms\"\n+)\n+\n+// PolicyDocument contains the statements that make up an IAM policy\n+type PolicyDocument struct {\n+\tVersion   string\n+\tStatement []StatementEntry\n+}\n+\n+// StatementEntry contains a set of actions and the resources they apply to\n+type StatementEntry struct {\n+\tEffect   string\n+\tAction   []string\n+\tResource []string\n+}\n+\n+func generateSecretsPolicy(credEntries map[string]CredsOutputEntry, kmsClient kmsClient.Client) (string, error) {\n+\tpolicyStatements := make([]StatementEntry, 0, len(credEntries))\n+\n+\tfor _, entry := range credEntries {\n+\t\tkeyARN := \"\"\n+\t\tif entry.KMSKeyID != \"\" {\n+\t\t\tvalidARN, err := getValidKeyARN(entry.KMSKeyID, kmsClient)\n+\t\t\tif err != nil {\n+\t\t\t\treturn \"\", err\n+\t\t\t}\n+\t\t\tkeyARN = validARN\n+\t\t}\n+\t\tstatement := generatePolicyStatement(entry.CredentialARN, keyARN)\n+\t\tpolicyStatements = append(policyStatements, statement)\n+\t}\n+\n+\tpolicyDoc := PolicyDocument{Version: \"2012-10-17\", Statement: policyStatements}\n+\tpolicyBytes, err := json.Marshal(&policyDoc)\n+\tif err != nil {\n+\t\treturn \"\", err\n+\t}\n+\n+\treturn string(policyBytes), nil\n+}\n+\n+func generatePolicyStatement(credARN, kmsKeyID string) StatementEntry {","path":"ecs-cli/modules/cli/regcreds/generate_policy.go","position":60,"original_position":60,"commit_id":"de343293a208c1f6ecaa82b49cfa65a9b1dede7a","original_commit_id":"de343293a208c1f6ecaa82b49cfa65a9b1dede7a","user":{"login":"allisaurus","id":34254888,"node_id":"MDQ6VXNlcjM0MjU0ODg4","avatar_url":"https://avatars1.githubusercontent.com/u/34254888?v=4","gravatar_id":"","url":"https://api.github.com/users/allisaurus","html_url":"https://github.com/allisaurus","followers_url":"https://api.github.com/users/allisaurus/followers","following_url":"https://api.github.com/users/allisaurus/following{/other_user}","gists_url":"https://api.github.com/users/allisaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/allisaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisaurus/subscriptions","organizations_url":"https://api.github.com/users/allisaurus/orgs","repos_url":"https://api.github.com/users/allisaurus/repos","events_url":"https://api.github.com/users/allisaurus/events{/privacy}","received_events_url":"https://api.github.com/users/allisaurus/received_events","type":"User","site_admin":false},"body":"agreed. at this stage it should be an ARN, not an ID or alias","created_at":"2018-10-04T19:57:59Z","updated_at":"2018-10-04T19:58:00Z","html_url":"https://github.com/aws/amazon-ecs-cli/pull/621#discussion_r222807316","pull_request_url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/comments/222807316"},"html":{"href":"https://github.com/aws/amazon-ecs-cli/pull/621#discussion_r222807316"},"pull_request":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621"}},"in_reply_to_id":222773735},"pull_request":{"url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621","id":219526484,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NTI2NDg0","html_url":"https://github.com/aws/amazon-ecs-cli/pull/621","diff_url":"https://github.com/aws/amazon-ecs-cli/pull/621.diff","patch_url":"https://github.com/aws/amazon-ecs-cli/pull/621.patch","issue_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/621","number":621,"state":"open","locked":false,"title":"Create task execution role for registry credentials on 'registry-cred…","user":{"login":"allisaurus","id":34254888,"node_id":"MDQ6VXNlcjM0MjU0ODg4","avatar_url":"https://avatars1.githubusercontent.com/u/34254888?v=4","gravatar_id":"","url":"https://api.github.com/users/allisaurus","html_url":"https://github.com/allisaurus","followers_url":"https://api.github.com/users/allisaurus/followers","following_url":"https://api.github.com/users/allisaurus/following{/other_user}","gists_url":"https://api.github.com/users/allisaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/allisaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisaurus/subscriptions","organizations_url":"https://api.github.com/users/allisaurus/orgs","repos_url":"https://api.github.com/users/allisaurus/repos","events_url":"https://api.github.com/users/allisaurus/events{/privacy}","received_events_url":"https://api.github.com/users/allisaurus/received_events","type":"User","site_admin":false},"body":"…s up'\r\n\r\n### Test output:\r\n\r\ncreateTest2.yml:\r\n```\r\nversion: 1\r\nregistry_credentials:\r\n  my.newregistry.net:  # new reg credentials with KMS key\r\n    username: ${USERNAME}\r\n    password: fake-password\r\n    kms_key_id: arn:aws:kms:us-west-2:###########:key/c58cf9b5-2cfa-####-####-a89f66d27c00\r\n    container_names:\r\n      - web-app\r\n  fakeregistry-2.net: # existing registry secret\r\n    secret_manager_arn: arn:aws:secretsmanager:us-west-2:###########:secret:amazon-ecs-cli-setup-fakeregistry-2.net-RKAB66\r\n    container_names:\r\n      - metrics\r\n  somemoarreg3.io: # existing registry creds, ARN unlisted (will be found and used)\r\n    username: ${USERNAME}\r\n    password: pfftt\r\n    container_names:\r\n      - test\r\n      - logging\r\n```\r\n\r\n\r\ncmd output:\r\n```\r\n$~\\amazon-ecs-cli> ./bin/local/ecs-cli.exe registry-creds up .\\createTest2.yml --role-name myTestCredsRole\r\n?[36mINFO?[0m[0000] Processing credentials for registry somemoarreg3.io...\r\n?[36mINFO?[0m[0000] Existing credential secret found, using arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-somemoarreg3.io-Js3JU4\r\n?[36mINFO?[0m[0000] Processing credentials for registry my.newregistry.net...\r\n?[36mINFO?[0m[0000] New credential secret created: arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-my.newregistry.net-aEpaRW\r\n?[36mINFO?[0m[0000] Processing credentials for registry fakeregistry-2.net...\r\n?[36mINFO?[0m[0000] Using existing secret arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-fakeregistry-2.net-RKAB66.\r\n?[36mINFO?[0m[0000] Creating resources for task execution role myTestCredsRole...\r\n?[36mINFO?[0m[0001] Created new task execution role policy arn:aws:iam::############:policy/amazon-ecs-cli-setup-myTestCredsRole-policy\r\n?[36mINFO?[0m[0001] Created new task execution role arn:aws:iam::############:role/myTestCredsRole\r\n?[36mINFO?[0m[0001] Attached AWS managed policy arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy to role myTestCredsRole\r\n?[36mINFO?[0m[0001] Attached new policy arn:aws:iam::############:policy/amazon-ecs-cli-setup-myTestCredsRole-policy to role myTestCredsRole\r\n```\r\n\r\nResulting role policy:\r\n```json\r\n{\r\n    \"Version\": \"2012-10-17\",\r\n    \"Statement\": [\r\n        {\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": [\r\n                \"kms:Decrypt\",\r\n                \"secretsmanager:GetSecretValue\"\r\n            ],\r\n            \"Resource\": [\r\n                \"arn:aws:kms:us-west-2:############:key/c58cf9b5-2cfa-####-####-a89f66d27c00\",\r\n                \"arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-my.newregistry.net-aEpaRW\"\r\n            ]\r\n        },\r\n        {\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": [\r\n                \"secretsmanager:GetSecretValue\"\r\n            ],\r\n            \"Resource\": [\r\n                \"arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-fakeregistry-2.net-RKAB66\"\r\n            ]\r\n        },\r\n        {\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": [\r\n                \"secretsmanager:GetSecretValue\"\r\n            ],\r\n            \"Resource\": [\r\n                \"arn:aws:secretsmanager:us-west-2:############:secret:amazon-ecs-cli-setup-somemoarreg3.io-Js3JU4\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n--\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-10-01T21:47:44Z","updated_at":"2018-10-04T19:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f900990f7f612db9271aab390a11c28ac6ee509","assignee":null,"assignees":[],"requested_reviewers":[{"login":"SoManyHs","id":29964746,"node_id":"MDQ6VXNlcjI5OTY0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/29964746?v=4","gravatar_id":"","url":"https://api.github.com/users/SoManyHs","html_url":"https://github.com/SoManyHs","followers_url":"https://api.github.com/users/SoManyHs/followers","following_url":"https://api.github.com/users/SoManyHs/following{/other_user}","gists_url":"https://api.github.com/users/SoManyHs/gists{/gist_id}","starred_url":"https://api.github.com/users/SoManyHs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoManyHs/subscriptions","organizations_url":"https://api.github.com/users/SoManyHs/orgs","repos_url":"https://api.github.com/users/SoManyHs/repos","events_url":"https://api.github.com/users/SoManyHs/events{/privacy}","received_events_url":"https://api.github.com/users/SoManyHs/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621/commits","review_comments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621/comments","review_comment_url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/621/comments","statuses_url":"https://api.github.com/repos/aws/amazon-ecs-cli/statuses/de343293a208c1f6ecaa82b49cfa65a9b1dede7a","head":{"label":"allisaurus:regcreds","ref":"regcreds","sha":"de343293a208c1f6ecaa82b49cfa65a9b1dede7a","user":{"login":"allisaurus","id":34254888,"node_id":"MDQ6VXNlcjM0MjU0ODg4","avatar_url":"https://avatars1.githubusercontent.com/u/34254888?v=4","gravatar_id":"","url":"https://api.github.com/users/allisaurus","html_url":"https://github.com/allisaurus","followers_url":"https://api.github.com/users/allisaurus/followers","following_url":"https://api.github.com/users/allisaurus/following{/other_user}","gists_url":"https://api.github.com/users/allisaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/allisaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisaurus/subscriptions","organizations_url":"https://api.github.com/users/allisaurus/orgs","repos_url":"https://api.github.com/users/allisaurus/repos","events_url":"https://api.github.com/users/allisaurus/events{/privacy}","received_events_url":"https://api.github.com/users/allisaurus/received_events","type":"User","site_admin":false},"repo":{"id":113924340,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM5MjQzNDA=","name":"amazon-ecs-cli","full_name":"allisaurus/amazon-ecs-cli","private":false,"owner":{"login":"allisaurus","id":34254888,"node_id":"MDQ6VXNlcjM0MjU0ODg4","avatar_url":"https://avatars1.githubusercontent.com/u/34254888?v=4","gravatar_id":"","url":"https://api.github.com/users/allisaurus","html_url":"https://github.com/allisaurus","followers_url":"https://api.github.com/users/allisaurus/followers","following_url":"https://api.github.com/users/allisaurus/following{/other_user}","gists_url":"https://api.github.com/users/allisaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/allisaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allisaurus/subscriptions","organizations_url":"https://api.github.com/users/allisaurus/orgs","repos_url":"https://api.github.com/users/allisaurus/repos","events_url":"https://api.github.com/users/allisaurus/events{/privacy}","received_events_url":"https://api.github.com/users/allisaurus/received_events","type":"User","site_admin":false},"html_url":"https://github.com/allisaurus/amazon-ecs-cli","description":"A custom Amazon ECS CLI that eases up the cluster setup process, enables users to run their applications locally or on ECS using the same Docker Compose file format and familiar Compose commands. ","fork":true,"url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli","forks_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/forks","keys_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/teams","hooks_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/hooks","issue_events_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/issues/events{/number}","events_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/events","assignees_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/assignees{/user}","branches_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/branches{/branch}","tags_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/tags","blobs_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/languages","stargazers_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/stargazers","contributors_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/contributors","subscribers_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/subscribers","subscription_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/subscription","commits_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/contents/{+path}","compare_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/merges","archive_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/downloads","issues_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/issues{/number}","pulls_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/labels{/name}","releases_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/releases{/id}","deployments_url":"https://api.github.com/repos/allisaurus/amazon-ecs-cli/deployments","created_at":"2017-12-12T00:38:58Z","updated_at":"2017-12-12T00:39:00Z","pushed_at":"2018-10-02T19:04:37Z","git_url":"git://github.com/allisaurus/amazon-ecs-cli.git","ssh_url":"git@github.com:allisaurus/amazon-ecs-cli.git","clone_url":"https://github.com/allisaurus/amazon-ecs-cli.git","svn_url":"https://github.com/allisaurus/amazon-ecs-cli","homepage":null,"size":11267,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws:regcreds","ref":"regcreds","sha":"ef3ffe0b719d45b76020b8811cb2d18e5ff59fcb","user":{"login":"aws","id":2232217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzIyMTc=","avatar_url":"https://avatars3.githubusercontent.com/u/2232217?v=4","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":43446846,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ0Njg0Ng==","name":"amazon-ecs-cli","full_name":"aws/amazon-ecs-cli","private":false,"owner":{"login":"aws","id":2232217,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzIyMTc=","avatar_url":"https://avatars3.githubusercontent.com/u/2232217?v=4","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},"html_url":"https://github.com/aws/amazon-ecs-cli","description":"The Amazon ECS CLI enables users to run their applications on ECS/Fargate using the Docker Compose file format, quickly provision resources, push/pull images in ECR, and monitor running applications on ECS/Fargate.","fork":false,"url":"https://api.github.com/repos/aws/amazon-ecs-cli","forks_url":"https://api.github.com/repos/aws/amazon-ecs-cli/forks","keys_url":"https://api.github.com/repos/aws/amazon-ecs-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/amazon-ecs-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/amazon-ecs-cli/teams","hooks_url":"https://api.github.com/repos/aws/amazon-ecs-cli/hooks","issue_events_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/events{/number}","events_url":"https://api.github.com/repos/aws/amazon-ecs-cli/events","assignees_url":"https://api.github.com/repos/aws/amazon-ecs-cli/assignees{/user}","branches_url":"https://api.github.com/repos/aws/amazon-ecs-cli/branches{/branch}","tags_url":"https://api.github.com/repos/aws/amazon-ecs-cli/tags","blobs_url":"https://api.github.com/repos/aws/amazon-ecs-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/amazon-ecs-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/amazon-ecs-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/amazon-ecs-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/amazon-ecs-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/amazon-ecs-cli/languages","stargazers_url":"https://api.github.com/repos/aws/amazon-ecs-cli/stargazers","contributors_url":"https://api.github.com/repos/aws/amazon-ecs-cli/contributors","subscribers_url":"https://api.github.com/repos/aws/amazon-ecs-cli/subscribers","subscription_url":"https://api.github.com/repos/aws/amazon-ecs-cli/subscription","commits_url":"https://api.github.com/repos/aws/amazon-ecs-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/amazon-ecs-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/amazon-ecs-cli/contents/{+path}","compare_url":"https://api.github.com/repos/aws/amazon-ecs-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/amazon-ecs-cli/merges","archive_url":"https://api.github.com/repos/aws/amazon-ecs-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/amazon-ecs-cli/downloads","issues_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues{/number}","pulls_url":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/amazon-ecs-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/amazon-ecs-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/amazon-ecs-cli/labels{/name}","releases_url":"https://api.github.com/repos/aws/amazon-ecs-cli/releases{/id}","deployments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/deployments","created_at":"2015-09-30T17:11:40Z","updated_at":"2018-10-03T22:12:07Z","pushed_at":"2018-10-04T15:13:13Z","git_url":"git://github.com/aws/amazon-ecs-cli.git","ssh_url":"git@github.com:aws/amazon-ecs-cli.git","clone_url":"https://github.com/aws/amazon-ecs-cli.git","svn_url":"https://github.com/aws/amazon-ecs-cli","homepage":"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html","size":11334,"stargazers_count":996,"watchers_count":996,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":177,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":177,"open_issues":65,"watchers":996,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621"},"html":{"href":"https://github.com/aws/amazon-ecs-cli/pull/621"},"issue":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/621"},"comments":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/aws/amazon-ecs-cli/statuses/de343293a208c1f6ecaa82b49cfa65a9b1dede7a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"allisaurus"}}