File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,15 @@ Object {
2929 " gu:cdk:version" : " 49.5.0" ,
3030 },
3131 " Outputs" : Object {
32+ " BootstrappingLambdaFunctionName" : Object {
33+ " Description" : " pinboard-bootstrapping-lambda-TEST function name" ,
34+ " Export" : Object {
35+ " Name" : " pinboard-bootstrapping-lambda-TEST-function-name" ,
36+ },
37+ " Value" : Object {
38+ " Ref" : " pinboardbootstrappinglambdaD2C487DA" ,
39+ },
40+ },
3241 " pinboardbootstrappinglambdaapiEndpoint4DE1E032" : Object {
3342 " Value" : Object {
3443 " Fn::Join" : Array [
Original file line number Diff line number Diff line change @@ -635,6 +635,7 @@ export class PinBoardStack extends GuStack {
635635
636636 const bootstrappingLambdaBasename = "pinboard-bootstrapping-lambda" ;
637637 const bootstrappingLambdaApiBaseName = `${ bootstrappingLambdaBasename } -api` ;
638+ const bootstrappingLambdaFunctionName = `${ bootstrappingLambdaBasename } -${ this . stage } ` ;
638639
639640 const bootstrappingLambdaFunction = new lambda . Function (
640641 this ,
@@ -656,7 +657,7 @@ export class PinBoardStack extends GuStack {
656657 "/pinboard/sentryDSN"
657658 ) ,
658659 } ,
659- functionName : ` ${ bootstrappingLambdaBasename } - ${ this . stage } ` ,
660+ functionName : bootstrappingLambdaFunctionName ,
660661 code : lambda . Code . fromBucket (
661662 deployBucket ,
662663 `${ this . stack } /${ this . stage } /${ bootstrappingLambdaApiBaseName } /${ bootstrappingLambdaApiBaseName } .zip`
@@ -731,5 +732,11 @@ export class PinBoardStack extends GuStack {
731732 description : `${ bootstrappingLambdaApiBaseName } -hostname` ,
732733 value : `${ bootstrappingApiDomainName . domainNameAliasDomainName } ` ,
733734 } ) ;
735+
736+ new CfnOutput ( this , `BootstrappingLambdaFunctionName` , {
737+ exportName : `${ bootstrappingLambdaFunctionName } -function-name` ,
738+ description : `${ bootstrappingLambdaFunctionName } function name` ,
739+ value : `${ bootstrappingLambdaFunction . functionName } ` ,
740+ } ) ;
734741 }
735742}
You can’t perform that action at this time.
0 commit comments