{"action":"opened","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/4504","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/4504/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/4504/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/4504/events","html_url":"https://github.com/serverless/serverless/issues/4504","id":278048827,"number":4504,"title":"The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [Tenant_Group] in the Resources block of the template","user":{"login":"balakrishna222111","id":22685723,"avatar_url":"https://avatars0.githubusercontent.com/u/22685723?v=4","gravatar_id":"","url":"https://api.github.com/users/balakrishna222111","html_url":"https://github.com/balakrishna222111","followers_url":"https://api.github.com/users/balakrishna222111/followers","following_url":"https://api.github.com/users/balakrishna222111/following{/other_user}","gists_url":"https://api.github.com/users/balakrishna222111/gists{/gist_id}","starred_url":"https://api.github.com/users/balakrishna222111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balakrishna222111/subscriptions","organizations_url":"https://api.github.com/users/balakrishna222111/orgs","repos_url":"https://api.github.com/users/balakrishna222111/repos","events_url":"https://api.github.com/users/balakrishna222111/events{/privacy}","received_events_url":"https://api.github.com/users/balakrishna222111/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-30T09:20:39Z","updated_at":"2017-11-30T09:20:39Z","closed_at":null,"author_association":"NONE","body":"1. i want a lambda(verify-tenant)function that should be come in \"trigger-->postconfirmation\" which is in user cognito poool \r\nbut it throws an error like \"The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [Tenant_Group] in the Resources block of the template\"\r\n-------------------------------------------------------------------------------------------------------------------\r\n`service: tenant-dev\r\n\r\nprovider:\r\n  name: aws\r\n  runtime: nodejs6.10\r\n  stage: dev\r\n  region: ap-southeast-1\r\n  authorizer: CognitoAuthorizer\r\n  apiGateway: TenantAPI\r\n  userPool: Tenant_Group\r\n\r\n  environment:\r\n    COGNITO_USERPOOLID: ap-southeast-1_faQUIpTCq\r\n    COGNITO_REGION: ap-southeast-1\r\n    GROUP_NAME: TenantGroup\r\n    COGNITO_GROUP_ROLE: arn:aws:iam::526821537466:role/Cognito_TenantIDPoolAuth_Role\r\n\r\ncustom:\r\n  region: ${self:provider.region}\r\n  authorizer: ${self:provider.authorizer}\r\n  apiGateway: ${self:provider.apiGateway}\r\n  stage: ${opt:stage, self:provider.stage}\r\n  prefix: ${self:custom.stage}-${self:service}\r\n  userPool: ${self:provider.userPool}\r\n\r\n\r\nfunctions:\r\n    verifyTenant:\r\n    Type: 'AWS::Lambda::Function'\r\n    timeout: 10\r\n    handler: functions/VerifyTenant/verifyTenant.handler\r\n    name: ${self:custom.prefix}-verifyTenant\r\n    events:\r\n    - cognitoUserPool:\r\n        pool: ${self:custom.userPool}\r\n        trigger: PostConfirmation\r\n\r\n\r\nresources:\r\n  Resources:\r\n    UserPool:\r\n      Type: \"AWS::Cognito::UserPool\"\r\n      Properties:\r\n        UserPoolName:\r\n          Ref: ${self:custom.userPool}`"}}
{"actor":{"display_login":"balakrishna222111"}}