Skip to content

Commit b47dcf5

Browse files
committed
nodejs 18 fixes
1 parent 53a6787 commit b47dcf5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Optional vars, defaults values in brackets:
5353

5454
```hcl
5555
module "deployment_pipeline_cosmos_graphql_repository" {
56-
source = "github.com/Airnauts/terraform-aws-deployment-pipeline.git?ref=v0.0.72"
56+
source = "github.com/Airnauts/terraform-aws-deployment-pipeline.git?ref=v0.0.75"
5757
5858
name = "cosmos-graphql"
5959
env = "dev"

deployment_pipeline/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ version: 0.2
518518
phases:
519519
install:
520520
commands:
521+
- wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg | true
521522
- apt-get -y update
522523
- apt-get -y install git tar xsel jq
523524
- wget https://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_386 -O /usr/bin/yq && chmod +x /usr/bin/yq

lambda-webhook-proxy/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const crypto = require('crypto');
2-
3-
import { CodePipelineClient, StartPipelineExecutionCommand } from "@aws-sdk/client-codepipeline";
2+
const { CodePipelineClient, StartPipelineExecutionCommand } = require("@aws-sdk/client-codepipeline");
43

54
function signRequestBody(key, body) {
65
return `sha256=${crypto.createHmac('sha256', key).update(body, 'utf-8').digest('hex')}`;
@@ -134,7 +133,7 @@ exports.githubWebhookListener = async (event, context, callback) => {
134133

135134
let result;
136135
try {
137-
result = await client.send()
136+
result = await client.send(new StartPipelineExecutionCommand(params));
138137
} catch (err) {
139138
errors.push({ request: params, error: err });
140139
}

0 commit comments

Comments
 (0)