I'm trying to make a Lambda function using the AWS CDK They make it seem simple enough, but when I use cdk synth, it's giving me an error that the asset doesn't exist (even though it does exist). Here's my code:
cwd = os.getcwd()
aws_lambda.Function(self, "lambda_function",
runtime=aws_lambda.Runtime.PYTHON_3_9,
handler="index.handler",
code=aws_lambda.Code.from_asset(os.path.join(cwd, "lambda_functions/lambda"))
)
The file exists, and the error message prints the directory I expect it to, so what's the issue here?
