mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Add DependsOn to UserPool template
This commit is contained in:
parent
2f5c84cff9
commit
f0253fe7f6
@ -103,12 +103,16 @@ class AwsCompileCognitoUserPoolEvents {
|
||||
|
||||
const userPoolLogicalId = this.provider.naming.getCognitoUserPoolLogicalId(poolName);
|
||||
|
||||
const DependsOn = _.map(currentPoolTriggerFunctions, (value) => this
|
||||
.provider.naming.getLambdaLogicalId(value.functionName));
|
||||
|
||||
const userPoolTemplate = {
|
||||
Type: 'AWS::Cognito::UserPool',
|
||||
Properties: {
|
||||
UserPoolName: poolName,
|
||||
LambdaConfig: lambdaConfig,
|
||||
},
|
||||
DependsOn,
|
||||
};
|
||||
|
||||
// Check if pool name has been declared in `Resources` and the resource has
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user