{"action":"created","issue":{"url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/3","repository_url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables","labels_url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/3/comments","events_url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/3/events","html_url":"https://github.com/svdgraaf/serverless-plugin-stage-variables/issues/3","id":182424783,"number":3,"title":"Unable to use custom provider resources","user":{"login":"nzmkey","id":17580872,"avatar_url":"https://avatars.githubusercontent.com/u/17580872?v=3","gravatar_id":"","url":"https://api.github.com/users/nzmkey","html_url":"https://github.com/nzmkey","followers_url":"https://api.github.com/users/nzmkey/followers","following_url":"https://api.github.com/users/nzmkey/following{/other_user}","gists_url":"https://api.github.com/users/nzmkey/gists{/gist_id}","starred_url":"https://api.github.com/users/nzmkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzmkey/subscriptions","organizations_url":"https://api.github.com/users/nzmkey/orgs","repos_url":"https://api.github.com/users/nzmkey/repos","events_url":"https://api.github.com/users/nzmkey/events{/privacy}","received_events_url":"https://api.github.com/users/nzmkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T03:11:21Z","updated_at":"2016-10-12T03:22:47Z","closed_at":null,"body":"Serverless provide a way to add custom provider resources in serverless.yam.  EG:\r\n```yml\r\nservice: lambda-blah\r\ncustom:\r\n  stageVariables:\r\n    env: ${self:provider.stage} \r\nplugins:\r\n  - serverless-plugin-stage-variables\r\nprovider: aws\r\nfunctions:\r\n  ...\r\nresources:\r\n  Resources:\r\n    ApiGatewayStage:\r\n      Type: AWS::ApiGateway::Stage\r\n      Properties:\r\n        MethodSettings:\r\n          - DataTraceEnabled: true\r\n          - LoggingLevel: INFO\r\n          - MetricsEnabled: true\r\n```\r\n\r\nThe existing code will always overwrite the custom resources merged earlier in serverless/lib/plugins/aws/deploy/lib/mergeCustomProviderResources.js\r\n\r\nSuggest do check if template.Resources.ApiGatewayStage already exists before setting"},"comment":{"url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/comments/253108922","html_url":"https://github.com/svdgraaf/serverless-plugin-stage-variables/issues/3#issuecomment-253108922","issue_url":"https://api.github.com/repos/svdgraaf/serverless-plugin-stage-variables/issues/3","id":253108922,"user":{"login":"nzmkey","id":17580872,"avatar_url":"https://avatars.githubusercontent.com/u/17580872?v=3","gravatar_id":"","url":"https://api.github.com/users/nzmkey","html_url":"https://github.com/nzmkey","followers_url":"https://api.github.com/users/nzmkey/followers","following_url":"https://api.github.com/users/nzmkey/following{/other_user}","gists_url":"https://api.github.com/users/nzmkey/gists{/gist_id}","starred_url":"https://api.github.com/users/nzmkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzmkey/subscriptions","organizations_url":"https://api.github.com/users/nzmkey/orgs","repos_url":"https://api.github.com/users/nzmkey/repos","events_url":"https://api.github.com/users/nzmkey/events{/privacy}","received_events_url":"https://api.github.com/users/nzmkey/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T03:22:47Z","updated_at":"2016-10-12T03:22:47Z","body":"Working on the fix.  Will request pull soon."}}
{"actor":{"display_login":"nzmkey"}}