From 855c3a9c1b48fabd45c469994062c7ee28f5b1e9 Mon Sep 17 00:00:00 2001 From: kakakakakku Date: Sun, 19 Oct 2025 20:25:31 +0900 Subject: [PATCH 1/2] waf-apigw-rest: Update runtime to python3.13 --- waf-apigw-rest/template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf-apigw-rest/template.yaml b/waf-apigw-rest/template.yaml index 2b41c6dd4..030c13fa1 100644 --- a/waf-apigw-rest/template.yaml +++ b/waf-apigw-rest/template.yaml @@ -57,7 +57,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambda_handler - Runtime: python3.9 + Runtime: python3.13 Events: RootGet: Type: Api From 06e3b26ee6cf991cec97c08b21dce3ca322f27c5 Mon Sep 17 00:00:00 2001 From: kakakakakku Date: Sun, 19 Oct 2025 20:28:09 +0900 Subject: [PATCH 2/2] waf-apigw-rest: Fix typo --- waf-apigw-rest/README.md | 2 +- waf-apigw-rest/template.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/waf-apigw-rest/README.md b/waf-apigw-rest/README.md index 6f5d96c41..bca7cd1b0 100644 --- a/waf-apigw-rest/README.md +++ b/waf-apigw-rest/README.md @@ -42,7 +42,7 @@ The application will only accept requests from countries that are in the country ## Testing -Deploy the app then go the the provided web address. If you are in the US you will get a 200 response from the backend Lambda funtion. If you are in any other country, you will get a 403 response from the WAF. Change the country codes in the array and redploy to see different results. +Deploy the app then go the the provided web address. If you are in the US you will get a 200 response from the backend Lambda function. If you are in any other country, you will get a 403 response from the WAF. Change the country codes in the array and redeploy to see different results. ## Cleanup diff --git a/waf-apigw-rest/template.yaml b/waf-apigw-rest/template.yaml index 030c13fa1..98671edf1 100644 --- a/waf-apigw-rest/template.yaml +++ b/waf-apigw-rest/template.yaml @@ -3,7 +3,7 @@ Transform: AWS::Serverless-2016-10-31 Description: Serverless patterns - AWS WAF to Amazon API Gateway REST (uksb-1tthgi812) (tag:waf-apigw-rest) Resources: - # AWS WAF Access Control List limits each IP to 100 requestes per second + # AWS WAF Access Control List limits each IP to 100 requests per second MyWAFACL: Type: AWS::WAFv2::WebACL Properties: @@ -38,8 +38,8 @@ Resources: # Amazon API gateway REST API MyApi: - Type: AWS::Serverless::Api - Properties: + Type: AWS::Serverless::Api + Properties: StageName: Prod EndpointConfiguration: REGIONAL TracingEnabled: true