mysterious-oyster-86659
05/03/2021, 7:13 PMTS
-formatted Lambda
resource to provision a Python
runtime, which already exists in S3 as a zip. Any thoughts to solutions for my use-case...?
Note that all other resources referenced in properties for the Lambda
are valid and exist in my stack.
export const campuSolutionsLambdaIngestCleaner = new aws.lambda.Function(
"campus-solutions-lambda-ingest-cleaner-foo",
{
name: "campuSolutions-LambdaIngestCleaner-foo",
role: campusSolutionsLambdaRole.arn,
// code: lambdaScriptBucketObjectCampuSolutionsCleaner,
s3Bucket: lambdaScriptBucketObjectCampuSolutionsCleaner.bucket,
s3Key: lambdaScriptBucketObjectCampuSolutionsCleaner.key,
memorySize: 9000,
runtime: "python3.8",
timeout: 800,
vpcConfig: {
securityGroupIds: [lambdaSqlRedshiftSecurityGroupfoo.id],
subnetIds: [
config.require("az0SubnetPrivateId"),
config.require("az1SubnetPrivateId"),
],
},
tags: tags(),
},
{ deleteBeforeReplace: true },
)
*ERROR*(s):
* filename, s3_* or image_uri attributes must be set
or sometimes, it's this...
error creating Lambda Function: ValidationException: status code: 400, request id: e8e53a21-e586-4bd1-a0dc-e9aa5627a87f