Ayo
09/10/2021, 1:59 PMthdxr
09/10/2021, 5:40 PMthdxr
09/10/2021, 5:40 PMprocess.env
?Ayo
09/10/2021, 6:54 PMAyo
09/10/2021, 6:55 PMIamgingertrash
09/10/2021, 6:57 PMIamgingertrash
09/10/2021, 6:57 PMthdxr
09/10/2021, 7:11 PMcopyFiles
feature to copy the json file into the lambda functionthdxr
09/10/2021, 7:12 PMIamgingertrash
09/10/2021, 7:19 PMIamgingertrash
09/10/2021, 7:19 PMthdxr
09/10/2021, 7:31 PM/dev/STRIPE_KEY
) and the lambda loads them using aws-sdk on startthdxr
09/10/2021, 7:32 PM/dev/*
thdxr
09/10/2021, 7:32 PMthdxr
09/10/2021, 7:33 PMAyo
09/10/2021, 8:54 PMIamgingertrash
09/10/2021, 8:55 PMthdxr
09/10/2021, 8:56 PMIamgingertrash
09/10/2021, 8:56 PMthdxr
09/10/2021, 8:56 PMthdxr
09/10/2021, 8:57 PMAyo
09/10/2021, 9:10 PMthdxr
09/10/2021, 9:11 PMdefaultFunctionProps: {
environment: {
STAGE: this.stage
}
}
Ayo
09/10/2021, 9:47 PMAyo
09/10/2021, 9:51 PMAyo
09/10/2021, 9:52 PMthdxr
09/10/2021, 9:54 PMthdxr
09/10/2021, 9:55 PMthis
should be referencing the stack. this.stage
should give you the the stage. You can also try scope.stage
to get it from the appthdxr
09/10/2021, 9:57 PMprocess.env.STAGE
not event.requestContext.stage