File tree Expand file tree Collapse file tree 10 files changed +157
-0
lines changed
APIGateway+LambdaAuthorizer
ServiceLifecycle+Postgres Expand file tree Collapse file tree 10 files changed +157
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for APIGateway Lambda Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# The API Gateway
7
23
MyProtectedApi :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for APIGateway Lambda Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
APIGatewayLambda :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for APIGateway Lambda Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
APIGatewayLambda :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for Hummingbird Lambda Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
HBLambda :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for AWS SDK Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
AWSSDKExample :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for AWS SDK Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
SotoExample :
Original file line number Diff line number Diff line change @@ -2,6 +2,19 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for ServiceLifecycle Lambda with PostgreSQL RDS
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+
5
18
Parameters :
6
19
7
20
DBName :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for StreamingfromEvent Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
StreamingCodable :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for Streaming Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
StreamingNumbers :
Original file line number Diff line number Diff line change @@ -2,6 +2,22 @@ AWSTemplateFormatVersion: '2010-09-09'
2
2
Transform : AWS::Serverless-2016-10-31
3
3
Description : SAM Template for APIGateway Lambda Example
4
4
5
+ # This is an example SAM template for the purpose of this project.
6
+ # When deploying such infrastructure in production environment,
7
+ # we strongly encourage you to follow these best practices for improved security and resiliency
8
+ # - Enable access loggin on API Gateway
9
+ # See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html)
10
+ # - Ensure that AWS Lambda function is configured for function-level concurrent execution limit
11
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html
12
+ # https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html
13
+ # - Check encryption settings for Lambda environment variable
14
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars-encryption.html
15
+ # - Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
16
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq
17
+ # - Ensure that AWS Lambda function is configured inside a VPC when it needs to access private resources
18
+ # See: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
19
+ # Code Example: https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/ServiceLifecycle%2BPostgres
20
+
5
21
Resources :
6
22
# Lambda function
7
23
APIGatewayLambda :
You can’t perform that action at this time.
0 commit comments