* feat: Add new API handlers for user, project, and task management; update package dependencies * feat: Update .gitignore, add Lambda layer configuration, and refactor DynamoDB handlers to use AWS SDK v3 * feat: Update serverless configuration and refactor API handlers to improve error handling and response structure * feat: Add Cognito user pool name parameter and update API handlers to include CORS headers * feat: Update task and project ID formats, add populateSeedData function, and enhance user ID handling * feat: Update image source paths to use S3 public URL for profile and task attachments
25 lines
766 B
HCL
25 lines
766 B
HCL
resource "aws_s3_bucket" "tasker_lambda_layer" {
|
|
bucket = "tasker-lambda-layer"
|
|
}
|
|
|
|
resource "aws_s3_object" "tasker_lambda_layer_zip" {
|
|
bucket = aws_s3_bucket.tasker_lambda_layer.id
|
|
key = "layers/tasker-layer.zip"
|
|
source = "../layers/tasker-layer.zip"
|
|
}
|
|
|
|
resource "aws_lambda_layer_version" "tasker_layer" {
|
|
layer_name = "tasker-layer"
|
|
s3_bucket = aws_s3_object.tasker_lambda_layer_zip.bucket
|
|
s3_key = aws_s3_object.tasker_lambda_layer_zip.key
|
|
compatible_runtimes = ["nodejs20.x"]
|
|
|
|
description = "Tasker Lambda Layer with shared dependencies"
|
|
}
|
|
|
|
resource "aws_ssm_parameter" "tasker_layer_arn" {
|
|
name = "/tasker/layers/tasker-layer-arn"
|
|
type = "String"
|
|
value = aws_lambda_layer_version.tasker_layer.arn
|
|
}
|