Skip to content

Commit

Permalink
[PRMP-640] - upgrade lambdas to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Aug 6, 2024
1 parent 1b5bdbc commit a769f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/base-gp-registrations-mi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Terraform Init
id: init
run: |
terraform init -backend-config="key=${{ secrets.AWS_STATE_S3_KEY }}" \
terraform init -no-color -backend-config="key=${{ secrets.AWS_STATE_S3_KEY }}" \
-backend-config="bucket=${{ secrets.AWS_STATE_BUCKET }}" \
-backend-config="dynamodb_table=${{ secrets.AWS_STATE_LOCK_TABLE }}"
working-directory: ./stacks/gp-registrations-mi/terraform
Expand All @@ -57,6 +57,8 @@ jobs:

- name: Make virtual environment
if: github.ref == 'refs/heads/master'
with:
python-version: '3.12'
run: |
python3 -m venv ./venv
./venv/bin/pip3 install --upgrade pip requests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_lambda_function" "error_alarm_alert_lambda" {
role = aws_iam_role.error_alarm_alert_lambda_role.arn
handler = "error_alarm_alert_main.lambda_handler"
source_code_hash = filebase64sha256(var.error_alarm_alert_lambda_zip)
runtime = "python3.9"
runtime = "python3.12"
timeout = 15
tags = merge(
local.common_tags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_lambda_function" "s3_event_uploader_lambda" {
role = aws_iam_role.s3_event_uploader_role.arn
handler = "s3_event_uploader_main.lambda_handler"
source_code_hash = filebase64sha256(var.s3_event_uploader_lambda_zip)
runtime = "python3.9"
runtime = "python3.12"
timeout = 15
tags = merge(
local.common_tags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_lambda_function" "splunk_cloud_event_uploader_lambda" {
role = aws_iam_role.splunk_cloud_event_uploader_lambda_role.arn
handler = "splunk_cloud_event_uploader_main.lambda_handler"
source_code_hash = filebase64sha256(var.splunk_cloud_event_uploader_lambda_zip)
runtime = "python3.9"
runtime = "python3.12"
timeout = 15
tags = merge(
local.common_tags,
Expand Down

0 comments on commit a769f36

Please sign in to comment.