Skip to content

Instantly share code, notes, and snippets.

@vicly
Created November 20, 2018 02:49
Show Gist options
  • Save vicly/530995debe1a07dddb6bcb1baaefaa49 to your computer and use it in GitHub Desktop.
Save vicly/530995debe1a07dddb6bcb1baaefaa49 to your computer and use it in GitHub Desktop.
[Allow Cognito to invoke lambda] #AWS
  AllowCognitoInvokeLambdaFunctionPermission:
    Type: AWS::Lambda::Permission
    Properties:
      Action: lambda:invokeFunction
      FunctionName: !GetAtt LambdaFunction.Arn
      Principal: cognito-idp.amazonaws.com
      SourceArn: !Sub arn:aws:cognito-idp:${AWS::Region}:${AWS::AccountId}:userpool/<COGNITO_USER_POOL_ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment