fourgates / aws-cdk-rds-lambda-ssm

CDK project provisioning an RDS instance and querying it using a Lambda and API Gateway
1 stars 0 forks source link

"AWS is not a constructor" #2

Open KurtLehnardt opened 1 month ago

KurtLehnardt commented 1 month ago

this block that imports the aws-sdk and tries to initialize it throws an error AWS is not a constructor

var AWS = require('aws-sdk'),
    region = "us-west-2",
    secretParams,
    pgClient;
fourgates commented 1 month ago

Can you elaborate on where this code is?