Skip to content

Commit

Permalink
Merge pull request #538 from rust-lang/chore-team-repo-ci-update-to-n…
Browse files Browse the repository at this point in the history
…odejs-runtime-20

chore(team-repo-ci): update to nodejs runtime 20
  • Loading branch information
MarcoIeni authored Oct 1, 2024
2 parents 0b42c56 + 94d8954 commit 645eba6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terraform/team-repo/ci.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ module "lambda_start_sync_team" {
name = "start-sync-team"
source_dir = "lambdas/start-sync-team"
handler = "index.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
role_arn = aws_iam_role.start_execution.arn
}
9 changes: 5 additions & 4 deletions terraform/team-repo/lambdas/start-sync-team/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const AWS = require('aws-sdk');
const CodeBuild = new AWS.CodeBuild();
const { CodeBuildClient, StartBuildCommand } = require("@aws-sdk/client-codebuild");

const client = new CodeBuildClient();

exports.handler = async function(event) {
return CodeBuild.startBuild({
await client.send(new StartBuildCommand({
projectName: 'sync-team',
}).promise();
}));
};

0 comments on commit 645eba6

Please sign in to comment.