Conecting AWS Lambda to Redshift - Times out after 60 seconds

前端 未结 2 428
忘掉有多难
忘掉有多难 2020-12-19 07:50

I created an AWS Lambda function that:

  • logs onto Redshift via JDBC URL
  • runs a query

Locally, using Node, I can successfully connect to

2条回答
  •  醉梦人生
    2020-12-19 08:11

    If you are using serverless-framework v1.5.0, you should add:

    iamRoleStatements: - Effect: Allow Action: - ec2:CreateNetworkInterface Resource: '*' - Effect: Allow Action: - ec2:DeleteNetworkInterface - ec2:DescribeNetworkInterfaces Resource: 'arn:aws:ec2:${self:provider.region}:*:network-interface/*'

    Also should add all securityGroupIds to Inbounds Rules, like below: screenshot 2017-01-09 23 02 33

    More info: https://serverless.com/framework/docs/providers/aws/guide/functions/#vpc-configuration

提交回复
热议问题