{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/491","labels_url":"https://api.github.com/repos/cloudfoundry/cli/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/cli/issues/491/comments","events_url":"https://api.github.com/repos/cloudfoundry/cli/issues/491/events","html_url":"https://github.com/cloudfoundry/cli/issues/491","id":90646321,"number":491,"title":"Allow service creation via manifest","user":{"login":"tsaleh","id":2016,"avatar_url":"https://avatars.githubusercontent.com/u/2016?v=3","gravatar_id":"","url":"https://api.github.com/users/tsaleh","html_url":"https://github.com/tsaleh","followers_url":"https://api.github.com/users/tsaleh/followers","following_url":"https://api.github.com/users/tsaleh/following{/other_user}","gists_url":"https://api.github.com/users/tsaleh/gists{/gist_id}","starred_url":"https://api.github.com/users/tsaleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsaleh/subscriptions","organizations_url":"https://api.github.com/users/tsaleh/orgs","repos_url":"https://api.github.com/users/tsaleh/repos","events_url":"https://api.github.com/users/tsaleh/events{/privacy}","received_events_url":"https://api.github.com/users/tsaleh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T11:17:09Z","updated_at":"2015-06-24T11:17:12Z","closed_at":null,"body":"It'd be helpful to be able to have the cf cli be able to create services based on information in the manifest.  Since services like rabbitmq are often shared among various applications, this should be a global section.\r\n\r\nThis is separate from the `services:` section under each `application`, though those will likely reference the services in this global section.\r\n\r\n#### Manifest changes:\r\n\r\n```\r\n---\r\nservices:\r\n  - service: redis\r\n    name: cache\r\n    plan: 100\r\n  - service: rabbitmq\r\n    name: queue\r\n    plan: 100 \r\n```\r\n\r\n#### CLI changes:\r\n\r\n```\r\n$ cf create-services-from-manifest\r\nCreating redis service instance \"cache\", plan: 100\r\nCreating rabbitmq service instance \"queue\", plan: 100\r\n```\r\n\r\nIf some exist:\r\n\r\n```\r\n$ cf create-services-from-manifest\r\nredis service instance \"cache\", plan: 100 exists\r\nCreating rabbitmq service instance \"queue\", plan: 100\r\n```\r\n\r\nif they don't match the manifest:\r\n\r\n```\r\n$ cf create-services-from-manifest\r\nservice named \"cache\" exists as redis service instance, plan: 200.  Mismatch detected, failing.\r\n```\r\n\r\n(note that it doesn't attempt to create the other services in this scenario)"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/cli/issues/comments/114832397","html_url":"https://github.com/cloudfoundry/cli/issues/491#issuecomment-114832397","issue_url":"https://api.github.com/repos/cloudfoundry/cli/issues/491","id":114832397,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T11:17:12Z","updated_at":"2015-06-24T11:17:12Z","body":"We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/97717336."}}