CodeUri not able to locate directory
I have an AWS CloudFormation template where I define a lambda function in the following way:
Lambda creation problem with Cloudformation
AWSTemplateFormatVersion: 2010-09-09 Description: Creating single submissions download file from S3 daily files and input put parameters Transform: – AWS::Serverless-2016-10-31 Resources: GiveawayInsertFunction: Type: AWS::Serverless::Function Properties: CodeUri: ../lambdas FunctionName: giveaway_insert Handler: giveaway_insert_lambda/src/index.handler Runtime: nodejs20.x MemorySize: 128 Timeout: 10 Architectures: – x86_64 Description: Inserting giveaway submissions into the database Policies: – Version: ‘2012-10-17’ Statement: – Effect: Allow Action: […]
Add variable list of environment variables to Lambda with Cloudformation
I have a root stack that defines a lambda function, but I want users to be able to define their own environment variables in the nested stack. Number of variables can vary depending on the use case. Is this possible?