This message was deleted.
# aws
s
This message was deleted.
b
Hi Ryan, can you share the code you have? It looks like you're trying to point to a non existent code path
w
Heres an example of one of the functions
Copy code
const adsMarmaladeRequestLambdaRole = new awsnative.iam.Role(
  `ads-${env}-marmalade-request-lambda-role`,
  {
    assumeRolePolicyDocument: assumeRolePolicyForLambda,
  },
);

const adsMarmaladeRequestLambdaParams = {
  publish: true,
  path: '/',
  name: `ads-${env}-marmalade-request`,
  role: adsMarmaladeRequestLambdaRole.arn,
  code: {
    s3Bucket: 'ads-delivery-sandbox-adthrive',
    s3Key: `${commit}/ads-marmalade-request.zip`,
  },
  memorySize: 128,
  runtime: 'nodejs12.x',
  handler: 'index.handler',
  timeout: 3,
  tracingConfig: {
    mode: FunctionTracingConfigMode.PassThrough,
  },
};

const adsMarmaladeRequestLambda = new awsnative.lambda.Function(
  `ads-${env}-marmalade-request`,
  adsMarmaladeRequestLambdaParams,
);
This was previously working with awsClassic. I’m only recently getting this error since attempting to switch to awsNative
I only recently tried adding path and name but made no difference either way