File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,17 @@ func lambdaWrapWithClient(lambdaFunction CustomResourceFunction, client httpClie
4141 r .PhysicalResourceID , r .Data , err = lambdaFunction (ctx , event )
4242 funcDidPanic = false
4343
44- if r .PhysicalResourceID == "" {
45- log .Println ("PhysicalResourceID must exist, copying Log Stream name" )
46- r .PhysicalResourceID = lambdacontext .LogStreamName
47- }
4844 if err != nil {
4945 r .Status = StatusFailed
5046 r .Reason = err .Error ()
5147 log .Printf ("sending status failed: %s" , r .Reason )
5248 } else {
5349 r .Status = StatusSuccess
50+
51+ if r .PhysicalResourceID == "" {
52+ log .Println ("PhysicalResourceID must exist on creation, copying Log Stream name" )
53+ r .PhysicalResourceID = lambdacontext .LogStreamName
54+ }
5455 }
5556
5657 err = r .sendWith (client )
You can’t perform that action at this time.
0 commit comments