aws / aws/serverless-application-model

Support existing UserPools

Open
#1,821 2 comments 1 reaction 0 assignees View on GitHub
maintainer/need-response type/feature
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

**Description:**
I would like to manage a Cognito custom messages Lambda function using SAM for an existing User Pool that is defined elsewhere (not in CloudFormation or SAM).

The [current Cognito event source](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-cognito.html) only accepts a `UserPool` reference "defined in the same template".

Would it be possible to add a `UserPoolId` that could be used in place of `UserPool` to address an existing pool and assign the SAM managed Lambda to that pool?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.