Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrading python runtime to 3.11 #161

Merged
merged 1 commit into from
Oct 5, 2023
Merged
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Modelled as a state machine, with the help of AWS step functions, Trapheus resto

The app requires the following AWS resources to exist before installation:

1. `python3.7` installed on local machine following [this](https://www.python.org/downloads/).
1. `python3.11` installed on local machine following [this](https://www.python.org/downloads/).

2. Configure [AWS SES](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/event-publishing-create-configuration-set.html)
- Configure the SES sender and receiver email ([SES Console](https://console.aws.amazon.com/ses/)->Email Addresses).
Expand Down
2 changes: 1 addition & 1 deletion docs/README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Modelled as a state machine, with the help of AWS step functions, Trapheus resto

L'application nécessite que les ressources AWS suivantes existent avant l'installation :

1. `python3.7`installé sur la machine locale suivante[ce](https://www.python.org/downloads/).
1. `python3.11`installé sur la machine locale suivante[ce](https://www.python.org/downloads/).

2. Configurer[AWS SES](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/event-publishing-create-configuration-set.html)
- Configurez l'e-mail de l'expéditeur et du destinataire SES ([SES Console](https://console.aws.amazon.com/ses/)->Adresses e-mail).
Expand Down
2 changes: 1 addition & 1 deletion docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Modelled as a state machine, with the help of AWS step functions, Trapheus resto

该应用程序在安装前需要以下 AWS 资源:

1. `python3.7`安装在本地计算机上如下[这](https://www.python.org/downloads/).
1. `python3.11`安装在本地计算机上如下[这](https://www.python.org/downloads/).

2. 配置[AWSSES](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/event-publishing-create-configuration-set.html)
- 配置 SES 发件人和收件人电子邮件([SES控制台](https://console.aws.amazon.com/ses/)->电子邮件地址)。
Expand Down
34 changes: 19 additions & 15 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: >

Globals:
Function:
Runtime: python3.7
Runtime: python3.11
Timeout: 900
Environment:
Variables:
Expand Down Expand Up @@ -171,6 +171,10 @@ Resources:
Description: Dependencies on util methods used in lambdas of the state machine
ContentUri: src/common/common.zip
CompatibleRuntimes:
- python3.11
- python3.10
- python3.9
- python3.8
- python3.7
- python3.6
LicenseInfo: 'MIT'
Expand All @@ -181,7 +185,7 @@ Resources:
FunctionName: "lambda-function-rename-dbinstance"
Description: Lambda functions required to execute rename of a database instance.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/rename/
Handler: rename_function.lambda_rename_dbinstance
MemorySize: 128
Expand All @@ -200,7 +204,7 @@ Resources:
FunctionName: "lambda-function-get-dbinstance-status-sf"
Description: Lambda function which provides information on status of db instance post any operation.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/checkstatus/
Handler: get_dbstatus_function.lambda_get_dbinstance_status
MemorySize: 128
Expand All @@ -219,7 +223,7 @@ Resources:
FunctionName: "lambda-function-restore-dbinstance-sf"
Description: Lambda functions required to execute database restore.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/restore/
Handler: restore_function.lambda_restore_dbinstance
MemorySize: 128
Expand All @@ -238,7 +242,7 @@ Resources:
FunctionName: "lambda-function-delete-dbinstance-sf"
Description: Lambda functions required to execute database instance deletion.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/delete/
Handler: delete_function.lambda_delete_dbinstance
MemorySize: 128
Expand All @@ -257,7 +261,7 @@ Resources:
FunctionName: "lambda-function-dbsnapshot-sf"
Description: Lambda functions required to take snapshot of a database instance.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/snapshot/
Handler: snapshot_function.lambda_create_dbinstance_snapshot
MemorySize: 128
Expand All @@ -276,7 +280,7 @@ Resources:
FunctionName: "lambda-function-send-emailalert-sf"
Description: Lambda functions required to enable alerts in case of any failure of state machine.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/emailalert/
Handler: email_function.lambda_handler
MemorySize: 128
Expand All @@ -301,7 +305,7 @@ Resources:
FunctionName: "lambda-function-send-slackalert-sf"
Description: Lambda functions required to enable slack alerts in case of any failure of state machine.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/slacknotification/
Handler: slack_notification.lambda_handler
MemorySize: 128
Expand All @@ -324,7 +328,7 @@ Resources:
FunctionName: "lambda-function-dbcluster-rename-sf"
Description: Lambda functions required to execute database cluster rename.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/rename/
Handler: cluster_rename_function.lambda_rename_dbcluster
MemorySize: 128
Expand All @@ -343,7 +347,7 @@ Resources:
FunctionName: "lambda-function-dbcluster-restore-sf"
Description: Lambda functions required to execute database cluster restore.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/restore/
Handler: cluster_restore_function.lambda_restore_dbcluster
MemorySize: 128
Expand All @@ -362,7 +366,7 @@ Resources:
FunctionName: "lambda-function-dbcluster-status-sf"
Description: Lambda function which provides information on status of db cluster post any operation.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/checkstatus/
Handler: get_dbcluster_status_function.lambda_get_cluster_status
MemorySize: 128
Expand All @@ -381,7 +385,7 @@ Resources:
FunctionName: "lambda-function-dbcluster-delete-sf"
Description: Lambda functions required to execute deletion of database cluster.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/delete/
Handler: cluster_delete_function.lambda_delete_dbcluster
MemorySize: 128
Expand All @@ -400,7 +404,7 @@ Resources:
FunctionName: "lambda-function-dbcluster-snapshot-sf"
Description: Lambda functions required to take snapshot of database cluster.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/snapshot/
Handler: cluster_snapshot_function.lambda_create_cluster_snapshot
MemorySize: 128
Expand Down Expand Up @@ -459,7 +463,7 @@ Resources:
FunctionName: !Sub ${ProjectName}-snapshot-export-sf
Description: Lambda functions required to start export task of RDS snapshot to s3.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/export/
Handler: export_snapshot_s3_function.lambda_export_rds_snapshot_to_s3
MemorySize: 128
Expand All @@ -480,7 +484,7 @@ Resources:
FunctionName: !Sub ${ProjectName}-cluster-snapshot-export-sf
Description: Lambda functions required to start export task of RDS snapshot to s3.
Role: !GetAtt LambdaExecutionRole.Arn
Runtime: python3.7
Runtime: python3.11
CodeUri: src/export/
Handler: export_cluster_snapshot_s3_function.lambda_export_rds_cluster_snapshot_to_s3
MemorySize: 128
Expand Down