Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion waf-apigw-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions waf-apigw-rest/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -57,7 +57,7 @@ Resources:
Properties:
CodeUri: src/
Handler: app.lambda_handler
Runtime: python3.9
Runtime: python3.13
Events:
RootGet:
Type: Api
Expand Down