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 an "After Build" step where scripts can execute after building but before invoking #4203

Open
stwr667 opened this issue Mar 22, 2024 · 0 comments
Labels
feature-request New feature or enhancement. May require GitHub community feedback.

Comments

@stwr667
Copy link

stwr667 commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
I'm regularly running into issues where the output of the sam build step in the .aws-sam/build folder is missing an artifact, or has one that I want slightly modified when using the AWS Toolkit before the sam local invoke command immediately executes, but there's no way to do this. I'm currently resorting to filesystem watchers which is a real hack.

Describe the solution you'd like
Ideally, somewhere in the AWS Lambda config here:
image

there would be way to add a script that can be run to run any custom code after sam build but before sam local invoke.

Describe alternatives you've considered
I've tried:

  • Just changing our build scripts, or the files under the project directory, but they all affect production behaviour. I need this to be executed only when running AWS Toolkit for debugging.
  • Using filesystem watchers that perform behaviour when files are added to the .aws-sam/build folder which is a real hack.
@stwr667 stwr667 added the feature-request New feature or enhancement. May require GitHub community feedback. label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback.
Projects
None yet
Development

No branches or pull requests

1 participant