Skip to content

Commit

Permalink
fix: Ensure to not create cognito pools marked as 'existing'
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Dec 6, 2019
1 parent f5cc0d4 commit fe546c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ class AwsCompileCognitoUserPoolEvents {
if (functionObj.events) {
_.forEach(functionObj.events, event => {
if (event.cognitoUserPool) {
if (event.cognitoUserPool.existing) return;
// Check event definition for `cognitoUserPool` object
if (typeof event.cognitoUserPool === 'object') {
// Check `cognitoUserPool` object has required properties
Expand Down

0 comments on commit fe546c5

Please sign in to comment.