diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f395a23..6d6b4dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,10 +43,10 @@ jobs: name: Terraform Format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Terraform Setup - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.0.0 @@ -67,17 +67,17 @@ jobs: pull-requests: write id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: "arn:aws:iam::${{ matrix.env.aws_account }}:role/${{ matrix.env.aws_gha_role }}" role-session-name: ${{ github.sha }} aws-region: us-west-2 - name: Terraform Setup - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_version: ${{ matrix.env.tf_version }} diff --git a/README.md b/README.md index 3e3da04..681f4b6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ module "lambda_api" { app_name = "my-lambda-codedeploy-dev" zip_filename = "./src/lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn diff --git a/examples/ci-0_13/ci.tf b/examples/ci-0_13/ci.tf index b632cd5..e795ed2 100644 --- a/examples/ci-0_13/ci.tf +++ b/examples/ci-0_13/ci.tf @@ -3,7 +3,7 @@ terraform { } provider "aws" { - version = "~> 3.67" + version = "~> 5.33" region = "us-west-2" } @@ -16,7 +16,7 @@ module "lambda_api" { app_name = "my-lambda" zip_filename = "./lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn vpc_id = module.acs.vpc.id diff --git a/examples/ci-0_14/ci.tf b/examples/ci-0_14/ci.tf index eaf78c2..b0ee9a5 100644 --- a/examples/ci-0_14/ci.tf +++ b/examples/ci-0_14/ci.tf @@ -3,7 +3,7 @@ terraform { } provider "aws" { - version = "~> 3.67" + version = "~> 5.33" region = "us-west-2" } @@ -16,7 +16,7 @@ module "lambda_api" { app_name = "my-lambda" zip_filename = "./lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn vpc_id = module.acs.vpc.id diff --git a/examples/ci-1/ci.tf b/examples/ci-1/ci.tf index 26f777b..9a680f3 100644 --- a/examples/ci-1/ci.tf +++ b/examples/ci-1/ci.tf @@ -3,7 +3,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "~> 3.67" + version = "~> 5.33" } } } @@ -21,7 +21,7 @@ module "lambda_api" { app_name = "my-lambda" zip_filename = "./lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn vpc_id = module.acs.vpc.id diff --git a/examples/no-codedeploy/example.tf b/examples/no-codedeploy/example.tf index 60dd76d..7d8b419 100644 --- a/examples/no-codedeploy/example.tf +++ b/examples/no-codedeploy/example.tf @@ -1,5 +1,5 @@ provider "aws" { - version = "~> 3.67" + version = "~> 5.33" region = "us-west-2" } @@ -13,7 +13,7 @@ module "lambda_api" { app_name = "my-lambda-dev" zip_filename = "./src/lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn vpc_id = module.acs.vpc.id diff --git a/examples/simple-lambda-in-vpc/example.tf b/examples/simple-lambda-in-vpc/example.tf index ddc8ac8..d21fbaa 100644 --- a/examples/simple-lambda-in-vpc/example.tf +++ b/examples/simple-lambda-in-vpc/example.tf @@ -13,7 +13,7 @@ module "lambda_api" { app_name = "my-lambda-dev" zip_filename = "./src/lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn diff --git a/examples/simple-lambda-with-deploy-test/example.tf b/examples/simple-lambda-with-deploy-test/example.tf index c8df376..c10af2f 100644 --- a/examples/simple-lambda-with-deploy-test/example.tf +++ b/examples/simple-lambda-with-deploy-test/example.tf @@ -1,5 +1,5 @@ provider "aws" { - version = "~> 3.67" + version = "~> 5.33" region = "us-west-2" } @@ -14,7 +14,7 @@ module "lambda_api" { env = "dev" zip_filename = "./src/lambda.zip" zip_handler = "index.handler" - zip_runtime = "nodejs12.x" + zip_runtime = "nodejs20.x" hosted_zone = module.acs.route53_zone https_certificate_arn = module.acs.certificate.arn @@ -61,7 +61,7 @@ resource "aws_lambda_function" "test_lambda" { function_name = "my-lambda-deploy-test" role = aws_iam_role.test_lambda.arn handler = "index.handler" - runtime = "nodejs12.x" + runtime = "nodejs20.x" timeout = 30 source_code_hash = data.archive_file.cleanup_lambda_zip.output_base64sha256 }