Skip to content

Commit

Permalink
chore: upgrade python version
Browse files Browse the repository at this point in the history
  • Loading branch information
lazize committed Feb 28, 2024
1 parent ba9e819 commit 81e16d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ https://aws.amazon.com/about-aws/whats-new/2023/09/amazon-route-53-managed-prefi

The CloudFormation template `cloudformation/template.yml` creates a stack with the following resources:

1. AWS Lambda function with customizable config file called `services.json`. The function's code is in `lambda/update_aws_ip_ranges.py` and is written in Python compatible with version 3.10.
1. AWS Lambda function with customizable config file called `services.json`. The function's code is in `lambda/update_aws_ip_ranges.py` and is written in Python compatible with version 3.12.
1. Lambda function's execution role.
1. SNS subscription and Lambda invocation permissions for the `arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged` SNS topic.

Expand Down
2 changes: 1 addition & 1 deletion cloudformation/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Resources:
Handler: 'update_aws_ip_ranges.lambda_handler'
MemorySize: 256
Role: !GetAtt 'LambdaUpdateIPRangesIamRole.Arn'
Runtime: python3.11
Runtime: python3.12
Timeout: 300
ReservedConcurrentExecutions: 2
Code:
Expand Down
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ resource "aws_lambda_function" "update_ip_ranges" {
description = "This Lambda function, invoked by an incoming SNS message, updates the IPv4 and IPv6 ranges with the addresses from the specified services"
role = aws_iam_role.update_ip_ranges.arn
handler = "update_aws_ip_ranges.lambda_handler"
runtime = "python3.11"
runtime = "python3.12"
timeout = 300
reserved_concurrent_executions = 2
memory_size = 256
Expand Down

0 comments on commit 81e16d5

Please sign in to comment.