Add DependsOn to UserPool template

This commit is contained in:
Philipp Muens 2017-05-31 15:19:21 +02:00
parent 2f5c84cff9
commit f0253fe7f6

View File

@ -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