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

Add Lambda Function Names to amplify_outputs.json #3124

Open
2 tasks
MattWlodarski opened this issue Jan 21, 2025 · 1 comment
Open
2 tasks

Add Lambda Function Names to amplify_outputs.json #3124

MattWlodarski opened this issue Jan 21, 2025 · 1 comment
Labels
feature-request New feature or request Gen 2

Comments

@MattWlodarski
Copy link

Describe the feature you'd like to request

Please add the amplify generated Lambda Function names to the amplify_outputs.json file that is automatically generated when you create/update your sandbox. I think the json object could follow the same structure as what you currently have in the "storage" json object just with different key names.

This would be really nice to have for situations where I want to invoke a function inside of another function. I need the full name of the function in order to do this.

Describe the solution you'd like

Add a "function" json object to the amplify_outpus.json file as described above.

Describe alternatives you've considered

You can add the function name as an environment variable in your backend.ts file, but last time I tried this I ran into circular dependency issues. The solution outlines above is way easier for me and would save me the effort of always having to add environment variables to the lambda function.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • ⚠️ This feature might incur a breaking change
@AnilMaktala
Copy link
Member

Hi @MattWlodarski, Thank you for bringing this up. We are marking it as a feature request for the team to evaluate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request Gen 2
Projects
None yet
Development

No branches or pull requests

2 participants