File tree Expand file tree Collapse file tree 8 files changed +18
-18
lines changed
simple-lambda-with-deploy-test Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ jobs:
43
43
name : Terraform Format
44
44
runs-on : ubuntu-latest
45
45
steps :
46
- - uses : actions/checkout@v3
46
+ - uses : actions/checkout@v4
47
47
48
48
- name : Terraform Setup
49
- uses : hashicorp/setup-terraform@v2
49
+ uses : hashicorp/setup-terraform@v3
50
50
with :
51
51
terraform_version : 1.0.0
52
52
@@ -67,17 +67,17 @@ jobs:
67
67
pull-requests : write
68
68
id-token : write
69
69
steps :
70
- - uses : actions/checkout@v3
70
+ - uses : actions/checkout@v4
71
71
72
72
- name : Configure AWS credentials
73
- uses : aws-actions/configure-aws-credentials@v2
73
+ uses : aws-actions/configure-aws-credentials@v4
74
74
with :
75
75
role-to-assume : " arn:aws:iam::${{ matrix.env.aws_account }}:role/${{ matrix.env.aws_gha_role }}"
76
76
role-session-name : ${{ github.sha }}
77
77
aws-region : us-west-2
78
78
79
79
- name : Terraform Setup
80
- uses : hashicorp/setup-terraform@v2
80
+ uses : hashicorp/setup-terraform@v3
81
81
with :
82
82
terraform_version : ${{ matrix.env.tf_version }}
83
83
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module "lambda_api" {
31
31
app_name = "my-lambda-codedeploy-dev"
32
32
zip_filename = "./src/lambda.zip"
33
33
zip_handler = "index.handler"
34
- zip_runtime = "nodejs12 .x"
34
+ zip_runtime = "nodejs20 .x"
35
35
36
36
hosted_zone = module.acs.route53_zone
37
37
https_certificate_arn = module.acs.certificate.arn
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ terraform {
3
3
}
4
4
5
5
provider "aws" {
6
- version = " ~> 3.67 "
6
+ version = " ~> 5.33 "
7
7
region = " us-west-2"
8
8
}
9
9
@@ -16,7 +16,7 @@ module "lambda_api" {
16
16
app_name = " my-lambda"
17
17
zip_filename = " ./lambda.zip"
18
18
zip_handler = " index.handler"
19
- zip_runtime = " nodejs12 .x"
19
+ zip_runtime = " nodejs20 .x"
20
20
hosted_zone = module. acs . route53_zone
21
21
https_certificate_arn = module. acs . certificate . arn
22
22
vpc_id = module. acs . vpc . id
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ terraform {
3
3
}
4
4
5
5
provider "aws" {
6
- version = " ~> 3.67 "
6
+ version = " ~> 5.33 "
7
7
region = " us-west-2"
8
8
}
9
9
@@ -16,7 +16,7 @@ module "lambda_api" {
16
16
app_name = " my-lambda"
17
17
zip_filename = " ./lambda.zip"
18
18
zip_handler = " index.handler"
19
- zip_runtime = " nodejs12 .x"
19
+ zip_runtime = " nodejs20 .x"
20
20
hosted_zone = module. acs . route53_zone
21
21
https_certificate_arn = module. acs . certificate . arn
22
22
vpc_id = module. acs . vpc . id
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ terraform {
3
3
required_providers {
4
4
aws = {
5
5
source = " hashicorp/aws"
6
- version = " ~> 3.67 "
6
+ version = " ~> 5.33 "
7
7
}
8
8
}
9
9
}
@@ -21,7 +21,7 @@ module "lambda_api" {
21
21
app_name = " my-lambda"
22
22
zip_filename = " ./lambda.zip"
23
23
zip_handler = " index.handler"
24
- zip_runtime = " nodejs12 .x"
24
+ zip_runtime = " nodejs20 .x"
25
25
hosted_zone = module. acs . route53_zone
26
26
https_certificate_arn = module. acs . certificate . arn
27
27
vpc_id = module. acs . vpc . id
Original file line number Diff line number Diff line change 1
1
provider "aws" {
2
- version = " ~> 3.67 "
2
+ version = " ~> 5.33 "
3
3
region = " us-west-2"
4
4
}
5
5
@@ -13,7 +13,7 @@ module "lambda_api" {
13
13
app_name = " my-lambda-dev"
14
14
zip_filename = " ./src/lambda.zip"
15
15
zip_handler = " index.handler"
16
- zip_runtime = " nodejs12 .x"
16
+ zip_runtime = " nodejs20 .x"
17
17
hosted_zone = module. acs . route53_zone
18
18
https_certificate_arn = module. acs . certificate . arn
19
19
vpc_id = module. acs . vpc . id
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module "lambda_api" {
13
13
app_name = " my-lambda-dev"
14
14
zip_filename = " ./src/lambda.zip"
15
15
zip_handler = " index.handler"
16
- zip_runtime = " nodejs12 .x"
16
+ zip_runtime = " nodejs20 .x"
17
17
18
18
hosted_zone = module. acs . route53_zone
19
19
https_certificate_arn = module. acs . certificate . arn
Original file line number Diff line number Diff line change 1
1
provider "aws" {
2
- version = " ~> 3.67 "
2
+ version = " ~> 5.33 "
3
3
region = " us-west-2"
4
4
}
5
5
@@ -14,7 +14,7 @@ module "lambda_api" {
14
14
env = " dev"
15
15
zip_filename = " ./src/lambda.zip"
16
16
zip_handler = " index.handler"
17
- zip_runtime = " nodejs12 .x"
17
+ zip_runtime = " nodejs20 .x"
18
18
19
19
hosted_zone = module. acs . route53_zone
20
20
https_certificate_arn = module. acs . certificate . arn
@@ -61,7 +61,7 @@ resource "aws_lambda_function" "test_lambda" {
61
61
function_name = " my-lambda-deploy-test"
62
62
role = aws_iam_role. test_lambda . arn
63
63
handler = " index.handler"
64
- runtime = " nodejs12 .x"
64
+ runtime = " nodejs20 .x"
65
65
timeout = 30
66
66
source_code_hash = data. archive_file . cleanup_lambda_zip . output_base64sha256
67
67
}
You can’t perform that action at this time.
0 commit comments