-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use serverless-{service-name}-{stage}-ServiceEndpoint as default CF export name for ServiceEndput #3616
Comments
That would be very useful, even better if it could export a few extra details (e.g. the API ID) |
Just want to clarify on what to add to the custom resource section in serverless.yml, since I was looking for it myself:
|
I've updated main description with implementation proposal. PR's welcome! |
hey @medikoo 👋 - first time OS contributor here. Just wanted to ask if this issue is still relevant and can be worked on? Would love to have a crack. |
I think the proposal looks good, nothing to add from me 👍 |
@js-cha it's all yours! |
Currently
ServiceEndpoint
andImportEventLambdaFunctionQualifiedArn
from CF stack are Output variables, but it would be nice to have default Export Name for them, something likesls-{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:
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.
The text was updated successfully, but these errors were encountered: