{"action":"created","issue":{"url":"https://api.github.com/repos/docker/infrakit/issues/395","repository_url":"https://api.github.com/repos/docker/infrakit","labels_url":"https://api.github.com/repos/docker/infrakit/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/docker/infrakit/issues/395/comments","events_url":"https://api.github.com/repos/docker/infrakit/issues/395/events","html_url":"https://github.com/docker/infrakit/pull/395","id":206919860,"number":395,"title":"Terraform plugin private IP and logicalID allocation","user":{"login":"ndegory","id":11839374,"avatar_url":"https://avatars.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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/infrakit/milestones/3","html_url":"https://github.com/docker/infrakit/milestone/3","labels_url":"https://api.github.com/repos/docker/infrakit/milestones/3/labels","id":2310572,"number":3,"title":"v0.4","description":"Main focus will be\r\n\r\n  + improve the template system especially with the use of exported functions and namespaces across multiple plugins.\r\n  + group api changes\r\n  + improve operations / monitoring and debugging -- lay groundwork for event streams.","creator":{"login":"chungers","id":299504,"avatar_url":"https://avatars.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},"open_issues":5,"closed_issues":2,"state":"open","created_at":"2017-02-08T21:36:53Z","updated_at":"2017-02-12T19:19:29Z","due_on":"2017-02-17T08:00:00Z","closed_at":null},"comments":3,"created_at":"2017-02-10T22:12:44Z","updated_at":"2017-02-14T06:44:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/infrakit/pulls/395","html_url":"https://github.com/docker/infrakit/pull/395","diff_url":"https://github.com/docker/infrakit/pull/395.diff","patch_url":"https://github.com/docker/infrakit/pull/395.patch"},"body":"Fixes #393\r\n\r\nWhen using logical ID allocations, if the private_ip property of the terraform plugin is set to INSTANCE_LOGICAL_ID, the property is replaced with the logical ID. Only enabled for AWS.\r\n\r\nUsage example:\r\n```\r\n  {\r\n    \"Plugin\": \"group\",\r\n    \"Properties\": {\r\n      \"ID\": \"swarm-manager\",\r\n      \"Properties\": {\r\n        \"Allocation\": {\r\n          \"LogicalIDs\": [\r\n            \"192.168.2.200\",\r\n            \"192.168.2.201\",\r\n            \"192.168.2.202\"\r\n          ]\r\n        },\r\n        \"Instance\": {\r\n          \"Plugin\": \"instance-terraform\",\r\n          \"Properties\": {\r\n            \"Type\": \"aws_instance\",\r\n            \"Value\": {\r\n              \"ami\": \"${lookup(var.aws_amis, var.aws_region)}\",\r\n              \"instance_type\": \"${var.aws_instance_type}\",\r\n              \"key_name\": \"${var.aws_key_name}\",\r\n              \"vpc_security_group_ids\": [\"${aws_security_group.default.id}\"],\r\n              \"subnet_id\": \"${aws_subnet.default.id}\",\r\n              \"private_ip\": \"INSTANCE_LOGICAL_ID\"\r\n              },\r\n              \"connection\": {\r\n                \"user\": \"${var.aws_connection_user}\"\r\n              }\r\n            }\r\n          }\r\n        },\r\n        ...\r\n```\r\nin conjonction with the swarm flavor plugin.\r\n\r\nNeeds PR #392 to be applied first."},"comment":{"url":"https://api.github.com/repos/docker/infrakit/issues/comments/279621994","html_url":"https://github.com/docker/infrakit/pull/395#issuecomment-279621994","issue_url":"https://api.github.com/repos/docker/infrakit/issues/395","id":279621994,"user":{"login":"chungers","id":299504,"avatar_url":"https://avatars.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},"created_at":"2017-02-14T06:44:32Z","updated_at":"2017-02-14T06:44:32Z","body":"@ndegory  - thanks - nice work!"}}
{"actor":{"display_login":"chungers"}}