Use serverless-{service-name}-{stage}-ServiceEndpoint as default CF export name for ServiceEndput
See original GitHub issueCurrently ServiceEndpoint
and ImportEventLambdaFunctionQualifiedArn
from CF stack are Output variables, but it would be nice to have default Export Name for them, something like sls-{service-name}-{stage}-ServiceEndpoint
.
It would allow to auto-use outputs from the stack in other CF scripts by default.
We currently can do the same functionality in the custom resource section where we can introduce an output variable with export name but it would be cool to have this available by default for core output variables.
Proposed solution
(added by maintainers)
For each configured output in scope of the Framework, configure an export name with following naming rules:
sls-{service}-{stage}-{outputName}
I think it’s unique enough to not be considered as breaking change, still if you feel it can be risky to just introduce that please elaborate.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Just want to clarify on what to add to the custom resource section in serverless.yml, since I was looking for it myself:
@js-cha it’s all yours!