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

Ability to setup codegen to output to a function #773

Open
2 tasks
georgevicbell opened this issue Dec 17, 2023 · 2 comments
Open
2 tasks

Ability to setup codegen to output to a function #773

georgevicbell opened this issue Dec 17, 2023 · 2 comments
Labels
feature-request New feature or request transferred Issue has been transferred from another Amplify repository

Comments

@georgevicbell
Copy link

Is this feature request related to a new or existing Amplify category?

function, api

Is this related to another service?

codegen

Describe the feature you'd like to request

Ability to configure and output codegen to multiple locations (specifically functions) from amplify codegen configure

Describe the solution you'd like

I'd like the ability to do:
amplify codegen configure

  • add ability to add additional output locations (specifically a specific lambda function or layer)
  • ability to set output format (ts, js, etc)
  • codegen would then output files to multiple locations when run

The use case is ensuring that functions are up to date with the latest graphql, and simplifying the process of getting up and running with queries/mutations in functions.

Describe alternatives you've considered

The manual process sucks...lots of errors over time...hard to keep things in sync.

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
@georgevicbell georgevicbell added the pending-triage Issues that need further discussion to determine label Dec 17, 2023
@ykethan
Copy link
Member

ykethan commented Dec 18, 2023

Hey, 👋 thanks for raising this! I'm going to transfer this over to our codegen repository for better assistance 🙂

@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Dec 18, 2023
@ykethan ykethan added the transferred Issue has been transferred from another Amplify repository label Dec 18, 2023
@georgevicbell
Copy link
Author

@ykethan - I believe this actually should be in the CLI because codegen can already do this via the config files as described here:

#49

The issue is that there is no way to do this from the CLI - you have to hack the config file...

What I am looking for is something either in "amplify codegen configure" that will set this up, or something in "amplify function update" that will set this up...

@dpilch dpilch added feature-request New feature or request and removed pending-triage Issues that need further discussion to determine labels Dec 20, 2023
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 transferred Issue has been transferred from another Amplify repository
Projects
None yet
Development

No branches or pull requests

3 participants