Skip to content

Commit

Permalink
updating lambda functions from 3.8 to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Roth committed Aug 3, 2023
1 parent eae99cc commit e82d4c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CFN_DEPLOY_AHA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Resources:
Properties:
Description: Copies AHA .zip from a source S3 bucket to a destination
Handler: index.handler
Runtime: python3.8
Runtime: python3.11
Role: !GetAtt 'CopyAHARole.Arn'
Timeout: 240
Code:
Expand Down Expand Up @@ -404,7 +404,7 @@ Resources:
MemorySize: 128
Timeout: 600
Role: ${LambdaExecutionRole.Arn}
Runtime: python3.8
Runtime: python3.11
Environment:
Variables:
REGIONS: ${Regions}
Expand Down Expand Up @@ -654,7 +654,7 @@ Resources:
Timeout: 600
Role:
'Fn::Sub': '${LambdaExecutionRole.Arn}'
Runtime: python3.8
Runtime: python3.11
Environment:
Variables:
ACCOUNT_IDS:
Expand Down
2 changes: 2 additions & 0 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
get_message_for_teams, get_org_message_for_teams, get_message_for_email, get_org_message_for_email, \
get_detail_for_eventbridge

print("boto3 version: ",boto3.__version__)

# query active health API endpoint
health_dns = socket.gethostbyname_ex('global.health.amazonaws.com')
(current_endpoint, global_endpoint, ip_endpoint) = health_dns
Expand Down
4 changes: 2 additions & 2 deletions terraform/Terraform_DEPLOY_AHA/Terraform_DEPLOY_AHA.tf
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ resource "aws_lambda_function" "AHA-LambdaFunction-PrimaryRegion" {
# s3_key = var.S3Key
reserved_concurrent_executions = -1
role = aws_iam_role.AHA-LambdaExecutionRole.arn
runtime = "python3.8"
runtime = "python3.11"

environment {
variables = {
Expand Down Expand Up @@ -716,7 +716,7 @@ resource "aws_lambda_function" "AHA-LambdaFunction-SecondaryRegion" {
# s3_key = var.S3Key
reserved_concurrent_executions = -1
role = aws_iam_role.AHA-LambdaExecutionRole.arn
runtime = "python3.8"
runtime = "python3.11"

environment {
variables = {
Expand Down

0 comments on commit e82d4c2

Please sign in to comment.