Happy Monday, Everyone:wave: Issues with deployin...
# typescript
m
Happy Monday, Everyone👋 Issues with deploying the following
TS
-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.
Copy code
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):
Copy code
* filename, s3_* or image_uri attributes must be set
or sometimes, it's this...
Copy code
error creating Lambda Function: ValidationException: status code: 400, request id: e8e53a21-e586-4bd1-a0dc-e9aa5627a87f