-
Notifications
You must be signed in to change notification settings - Fork 72
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
Sandbox function deployment does not compile TS into JS #1974
Comments
Hey @rpostulart, thank you for reaching out. Is the custom resource a Lambda function created using the CDK Lambda construct? |
Yes, this is the code which is created with CDK and imported as target for the eventbridge event which are also defined as CDK
|
Hey @rpostulart, thank you for info is this a scheduled event or is this triggered by an AWS event? If this is a AWS event what service triggers this event? |
This is indeed a scheduled event and targeted lambda by event bridge |
@rpostulart thanks for the information, the NodejsFunction construct should help with your use case to transpile automatically. |
ok that works, thanks! |
Environment information
Describe the bug
When I add a custom resource Lambda function and I would like to code this with Typescript. Then when saving the file a new trigger starts deploying, which is fine, but it does not compiles TS into JS in the lambda function. So I need to do this locally first and this triggers a new deployment again.
Can sandbox deployment automaticly compile ts into js during deployment
Reproduction steps
npx ampx sandbox
The text was updated successfully, but these errors were encountered: