Skip to content
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

Resource Binding for multiple Lambda Functions #3695

Open
MartinLoeper opened this issue Mar 6, 2024 · 2 comments
Open

Resource Binding for multiple Lambda Functions #3695

MartinLoeper opened this issue Mar 6, 2024 · 2 comments

Comments

@MartinLoeper
Copy link

MartinLoeper commented Mar 6, 2024

I just noticed that lambda types are generated only once in the .sst folder for all lambda functions in our project.

I would expect to see separate types for each lambda because we bind different resources to the respective functions.

Is this intended our is something misconfigured in our project?

@MartinLoeper MartinLoeper changed the title Resource Binding for multiple Lambda Functions I just noticed that lambda types are generated only once in the .sst folder for all lambda functions in our project. I would expect to see separate types for each lambda because we bind different resources to the respective functions. Resource Binding for multiple Lambda Functions I just noticed that lambda types are generated only once in the .sst folder for all lambda functions in our project. I would expect to see separate types for each lambda because we bind different resources to the respective functions. Mar 6, 2024
@MartinLoeper MartinLoeper changed the title Resource Binding for multiple Lambda Functions I just noticed that lambda types are generated only once in the .sst folder for all lambda functions in our project. I would expect to see separate types for each lambda because we bind different resources to the respective functions. Resource Binding for multiple Lambda Functions Mar 6, 2024
@jayair
Copy link
Contributor

jayair commented Mar 9, 2024

Hmm is there an issue you are running into?

@MartinLoeper
Copy link
Author

No, its just a conceptional question as while I'm coding one particular lambda function, the typescript type definitions suggest an environment variable is available whereas it is not available because it was bound to another function. This gives a false sense of security when one of our devs forgets to check the actual bindings in the infrastructure part. So its more like a maintenance issue than a functional one.

Thus I am asking whether I set it up wrong or this case was not taken into consideration yet.
If it is intended, I think a quick note in the Resource Binding docs would be nice to raise awareness.
Anyway, thanks for your quick response Jay! Love your work here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants