Skip to content

Commit 9668435

Browse files
committed
Specify the KvID.
1 parent fa0a9a0 commit 9668435

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

make.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ commander
6868
.description('Deploying website to AWS.')
6969
.action(async () => {
7070
const requestInterceptorLambdaFunction = await fs.readFile(path.join(underscoreDirname, 'template/requestInterceptorLambdaFunction.js'));
71-
const stackTemplate = stackTemplateProvider.getStack(requestInterceptorLambdaFunction.toString());
71+
const stackTemplate = stackTemplateProvider.getStack({
72+
requestInterceptorLambdaFunctionString: requestInterceptorLambdaFunction.toString()
73+
});
7274

7375
const stsClient = new STSClient({});
7476
const callerIdentityResponse = await stsClient.send(new GetCallerIdentityCommand({}));

template/cloudFormationWebsiteTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const stackProvider = {
2-
getStack(requestInterceptorLambdaFunctionString) {
2+
getStack({ requestInterceptorLambdaFunctionString}) {
33
return {
44
AWSTemplateFormatVersion: '2010-09-09',
55
Parameters: {

template/requestInterceptorLambdaFunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// eslint-disable-next-line node/no-missing-import
22
import cf from 'cloudfront';
33

4-
const kvsId = '';
4+
const kvsId = 'fa4d81f8-9371-4fac-8bc3-f295083b910e';
55
let kvsHandle;
66
try {
77
kvsHandle = cf.kvs(kvsId);

0 commit comments

Comments
 (0)