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

Update TS Step Functions to use Callback Functions Instead of Serverless Functions #1044

Merged
merged 4 commits into from
Jul 19, 2021

Conversation

phillipedwards
Copy link
Member

This is the update the example to use the aws.lambda.callbackFunction resource instead of the deprecated aws.serverless.Function.

callback(null, "Hello");
},
);
const helloFunction = new aws.lambda.CallbackFunction(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use aws.lambda.Function instead here. I think the CallbackFunction is for this situation https://www.pulumi.com/docs/guides/crosswalk/aws/lambda/#specifying-attributes-on-your-magic-lambda-function

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does aws.lambda.Function support in-line and/or magic functions in node? My understanding was it supported a type of deployment package, whether that be a local app, s3 bucket, etc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Yes you're right

@phillipedwards phillipedwards merged commit 8cf1188 into master Jul 19, 2021
@pulumi-bot pulumi-bot deleted the lambda-callback-update branch July 19, 2021 21:28
dixler pushed a commit that referenced this pull request Jan 21, 2022
Update TS Step Functions to use Callback Functions Instead of Serverless Functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants