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

allow building Lambda Layers with npm scripts amplify:<layer-name> #13405

Open
lucajung opened this issue Nov 12, 2023 · 4 comments
Open

allow building Lambda Layers with npm scripts amplify:<layer-name> #13405

lucajung opened this issue Nov 12, 2023 · 4 comments
Labels
feature-request Request a new feature lambda-layers issues related to Lambda Layers

Comments

@lucajung
Copy link

Amplify CLI Version

12.8.2

Question

I just read about the ability of the amplify cli to call all scripts in the root directory that start with amplify: on amplify push -y. But it doesn't seem to work. Is this still a feature?

@lucajung lucajung added pending-triage Issue is pending triage question General question labels Nov 12, 2023
@josefaidt
Copy link
Contributor

Hey @lucajung 👋 thanks for raising this! This feature is specific to Functions, where you can name an npm script as amplify:<function-name> and the CLI will invoke this after installing dependencies for the Function. https://docs.amplify.aws/cli/function/build-options/

What is the use case you're looking to address?

@josefaidt josefaidt added the pending-response Issue is pending response from the issue author label Nov 13, 2023
@lucajung
Copy link
Author

Hi!

The use case described in this article is actually exactly what I am trying to achieve. However, I am trying to call the function in a layer project and not in a pure function project.
Does this matter?

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Nov 13, 2023
@josefaidt
Copy link
Contributor

Hey @lucajung I do not believe this will work with Lambda Layers, unfortunately, however I can mark this as a feature request to introduce this behavior.

@josefaidt josefaidt changed the title Run NPM script on amplify push -y allow building Lambda Layers with npm scripts amplify:<layer-name> Nov 15, 2023
@josefaidt josefaidt added feature-request Request a new feature lambda-layers issues related to Lambda Layers and removed question General question pending-triage Issue is pending triage labels Nov 15, 2023
@lucajung
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature lambda-layers issues related to Lambda Layers
Projects
None yet
Development

No branches or pull requests

2 participants