diff --git a/.gitignore b/.gitignore index 3e1d4c2e..c9321c27 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ Makefile .devcontainer .amazonq .kiro -nodejs \ No newline at end of file +nodejs +.ash \ No newline at end of file diff --git a/Examples/APIGateway+LambdaAuthorizer/template.yaml b/Examples/APIGateway+LambdaAuthorizer/template.yaml index ae9a026f..b7ebf07f 100644 --- a/Examples/APIGateway+LambdaAuthorizer/template.yaml +++ b/Examples/APIGateway+LambdaAuthorizer/template.yaml @@ -35,7 +35,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: @@ -60,7 +60,7 @@ Resources: Timeout: 29 # max 29 seconds for Lambda authorizers Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Examples/APIGateway/template.yaml b/Examples/APIGateway/template.yaml index 939f09f8..e296f363 100644 --- a/Examples/APIGateway/template.yaml +++ b/Examples/APIGateway/template.yaml @@ -11,7 +11,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Examples/CDK/infra/lib/lambda-api-project-stack.ts b/Examples/CDK/infra/lib/lambda-api-project-stack.ts index 3598478c..b4aaa3d1 100644 --- a/Examples/CDK/infra/lib/lambda-api-project-stack.ts +++ b/Examples/CDK/infra/lib/lambda-api-project-stack.ts @@ -27,7 +27,7 @@ export class LambdaApiStack extends cdk.Stack { architecture: lambda.Architecture.ARM_64, handler: 'bootstrap', code: lambda.Code.fromAsset('../.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/APIGatewayLambda/APIGatewayLambda.zip'), - memorySize: 512, + memorySize: 128, timeout: cdk.Duration.seconds(30), environment: { LOG_LEVEL: 'debug', diff --git a/Examples/HummingbirdLambda/template.yaml b/Examples/HummingbirdLambda/template.yaml index 7bf9a272..912665aa 100644 --- a/Examples/HummingbirdLambda/template.yaml +++ b/Examples/HummingbirdLambda/template.yaml @@ -11,7 +11,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Examples/S3_AWSSDK/template.yaml b/Examples/S3_AWSSDK/template.yaml index 46e29ec8..a2cfa8ef 100644 --- a/Examples/S3_AWSSDK/template.yaml +++ b/Examples/S3_AWSSDK/template.yaml @@ -11,7 +11,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Examples/S3_Soto/template.yaml b/Examples/S3_Soto/template.yaml index bfc04d1e..9ed84b23 100644 --- a/Examples/S3_Soto/template.yaml +++ b/Examples/S3_Soto/template.yaml @@ -11,7 +11,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Examples/ServiceLifecycle+Postgres/INFRASTRUCTURE.md b/Examples/ServiceLifecycle+Postgres/INFRASTRUCTURE.md index 890c7fd2..55ab535a 100644 --- a/Examples/ServiceLifecycle+Postgres/INFRASTRUCTURE.md +++ b/Examples/ServiceLifecycle+Postgres/INFRASTRUCTURE.md @@ -56,7 +56,7 @@ The infrastructure consists of a secure VPC setup with private subnets only, con ### Service Lifecycle Lambda - **Runtime**: Custom runtime (provided.al2) - **Architecture**: ARM64 -- **Memory**: 512MB +- **Memory**: 128MB - **Timeout**: 60 seconds - **Network**: Deployed in private subnets with access to database within VPC - **Environment Variables**: diff --git a/Examples/ServiceLifecycle+Postgres/template.yaml b/Examples/ServiceLifecycle+Postgres/template.yaml index f55fc86b..25ca1d81 100644 --- a/Examples/ServiceLifecycle+Postgres/template.yaml +++ b/Examples/ServiceLifecycle+Postgres/template.yaml @@ -146,7 +146,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 VpcConfig: diff --git a/Examples/Testing/template.yaml b/Examples/Testing/template.yaml index c981c978..8bfe17bd 100644 --- a/Examples/Testing/template.yaml +++ b/Examples/Testing/template.yaml @@ -11,7 +11,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 Environment: diff --git a/Sources/AWSLambdaRuntime/Docs.docc/Deployment.md b/Sources/AWSLambdaRuntime/Docs.docc/Deployment.md index 245b1cc0..899fd116 100644 --- a/Sources/AWSLambdaRuntime/Docs.docc/Deployment.md +++ b/Sources/AWSLambdaRuntime/Docs.docc/Deployment.md @@ -312,7 +312,7 @@ Resources: Timeout: 60 Handler: swift.bootstrap # ignored by the Swift runtime Runtime: provided.al2 - MemorySize: 512 + MemorySize: 128 Architectures: - arm64 # The events that will trigger this function @@ -489,7 +489,7 @@ export class LambdaApiStack extends cdk.Stack { architecture: lambda.Architecture.ARM_64, handler: 'bootstrap', code: lambda.Code.fromAsset('../.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/APIGatewayLambda/APIGatewayLambda.zip'), - memorySize: 512, + memorySize: 128, timeout: cdk.Duration.seconds(30), environment: { LOG_LEVEL: 'debug',