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 2b41c6dd4..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 @@ -57,7 +57,7 @@ Resources: Properties: CodeUri: src/ Handler: app.lambda_handler - Runtime: python3.9 + Runtime: python3.13 Events: RootGet: Type: Api