{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/352","labels_url":"https://api.github.com/repos/serverless/serverless/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/352/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/352/events","html_url":"https://github.com/serverless/serverless/issues/352","id":121508690,"number":352,"title":"PowerUserAccess policy not allowing creation of API Gateway endpoints","user":{"login":"visualasparagus","id":4904741,"avatar_url":"https://avatars.githubusercontent.com/u/4904741?v=3","gravatar_id":"","url":"https://api.github.com/users/visualasparagus","html_url":"https://github.com/visualasparagus","followers_url":"https://api.github.com/users/visualasparagus/followers","following_url":"https://api.github.com/users/visualasparagus/following{/other_user}","gists_url":"https://api.github.com/users/visualasparagus/gists{/gist_id}","starred_url":"https://api.github.com/users/visualasparagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualasparagus/subscriptions","organizations_url":"https://api.github.com/users/visualasparagus/orgs","repos_url":"https://api.github.com/users/visualasparagus/repos","events_url":"https://api.github.com/users/visualasparagus/events{/privacy}","received_events_url":"https://api.github.com/users/visualasparagus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T15:17:44Z","updated_at":"2015-12-11T16:03:18Z","closed_at":"2015-12-11T16:03:18Z","body":"This may be related to #351 \r\n\r\nUsing two projects. One with an Administrator policy and the other with PowerUserAccess policy, I'm having different results deploying endpoints. \r\n\r\n**PowerUserAccess**\r\nAPI is created but no endpoints are created. The project has one module/function named `lists/add-member`. The command line returns the following error.\r\n```\r\n$ serverless endpoint deploy\r\nServerless: Deploying endpoints in \"development\" to the following regions: eu-west-1  \r\nServerless: | /usr/local/lib/node_modules/serverless/node_modules/bluebird/js/main/promise.js:677\r\n            throw e;\r\n            ^\r\n\r\nServerlessError: The REST API doesn't contain any methods\r\n    at new ServerlessError (/usr/local/lib/node_modules/serverless/lib/ServerlessError.js:17:11)\r\n    at /usr/local/lib/node_modules/serverless/lib/actions/EndpointDeployApiGateway.js:106:17\r\nFrom previous event:\r\n    at EndpointDeployApiGateway._createDeployment (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeployApiGateway.js:105:15)\r\nFrom previous event:\r\n    at EndpointDeployApiGateway.endpointDeployApiGateway (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeployApiGateway.js:57:10)\r\nFrom previous event:\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:207:25\r\n    at Array.reduce (native)\r\n    at Object.actions.(anonymous function) [as endpointDeployApiGateway] (/usr/local/lib/node_modules/serverless/lib/Serverless.js:206:25)\r\n    at /usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:390:40\r\nFrom previous event:\r\n    at /usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:381:16\r\nFrom previous event:\r\n    at EndpointDeploy._deployEndpointsByRegion (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:335:10)\r\n    at EndpointDeploy.<anonymous> (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:287:24)\r\nFrom previous event:\r\n    at EndpointDeploy._processDeployment (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:281:10)\r\nFrom previous event:\r\n    at EndpointDeploy.endpointDeploy (/usr/local/lib/node_modules/serverless/lib/actions/EndpointDeploy.js:120:10)\r\n    at processImmediate [as _immediateCallback] (timers.js:374:17)\r\nFrom previous event:\r\n    at /usr/local/lib/node_modules/serverless/lib/Serverless.js:207:25\r\n    at Array.reduce (native)\r\n    at Serverless.actions.(anonymous function) (/usr/local/lib/node_modules/serverless/lib/Serverless.js:206:25)\r\n    at Serverless.command (/usr/local/lib/node_modules/serverless/lib/Serverless.js:180:44)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/serverless/bin/serverless:13:36)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:475:10)\r\n    at startup (node.js:118:18)\r\n    at node.js:952:3\r\n```\r\n\r\n\r\n**AdminstratorAccess**\r\nAPI is created and also the endpoints. The project has one module/function named `foo/bar`. The command line returns the following.\r\n```\r\n$ serverless endpoint deploy\r\nServerless: Deploying endpoints in \"development\" to the following regions: eu-west-1  \r\nServerless: Successfully deployed endpoints in \"development\" to the following regions:  \r\nServerless: eu-west-1 ------------------------  \r\nServerless:   GET - https://xxxxxx.execute-api.eu-west-1.amazonaws.com/development/foo/bar\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/163974935","html_url":"https://github.com/serverless/serverless/issues/352#issuecomment-163974935","issue_url":"https://api.github.com/repos/serverless/serverless/issues/352","id":163974935,"user":{"login":"visualasparagus","id":4904741,"avatar_url":"https://avatars.githubusercontent.com/u/4904741?v=3","gravatar_id":"","url":"https://api.github.com/users/visualasparagus","html_url":"https://github.com/visualasparagus","followers_url":"https://api.github.com/users/visualasparagus/followers","following_url":"https://api.github.com/users/visualasparagus/following{/other_user}","gists_url":"https://api.github.com/users/visualasparagus/gists{/gist_id}","starred_url":"https://api.github.com/users/visualasparagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualasparagus/subscriptions","organizations_url":"https://api.github.com/users/visualasparagus/orgs","repos_url":"https://api.github.com/users/visualasparagus/repos","events_url":"https://api.github.com/users/visualasparagus/events{/privacy}","received_events_url":"https://api.github.com/users/visualasparagus/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T16:03:18Z","updated_at":"2015-12-11T16:03:18Z","body":"I'm closing this as after further investigations this wasn't an issue withe the power issue in the end, but an issue that the lambda function hadn't been created yet."}}