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 example for creating custom resources #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fwang
Copy link
Contributor

@fwang fwang commented Apr 20, 2021

Do not merge this example yet.

This shows how to create a CloudFormation custom resource using SST. Currently you can deploy (ie. sst deploy) this stack, but sst start would not work. That's because the custom resource Lambda function will be replaced by a stub, but the local websocket server is not running during the deployment.

Hence, we need to either

  • start the websocket server before the deployment starts;
  • or educate ppl not to use sst.Function when creating custom resources.

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

1 participant