Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Receive verified Shopify order creation webhooks and make Trello cards out of them.

License

Notifications You must be signed in to change notification settings

hectcastro/shopify-trello-bridge

Repository files navigation

shopify-trello-bridge

CI codecov CII Best Practices

This is a CDK project to receive verified Shopify order creation webhooks and make Trello cards out of them. The stack consists of:

  • A Lambda function URL to receive and process the webhook
  • A set of Systems Manager Parameters to share secrets

Usage

Start by installing the dependencies:

$ npm install

Then, start the local Lambda development environment:

$ npm run cdk watch

Configuration

The Lambda function is configured via Systems Manager Parameters. Ensure that each of the following exists in the target AWS account parameter store before deploying the stack.

  • /shopify-trello-bridge/trello/oauth-token: Trello API OAuth token.
  • /shopify-trello-bridge/trello/api-key: Trello API key.
  • /shopify-trello-bridge/trello/list-id: Target Trello list ID for the card.
  • /shopify-trello-bridge/shopify/webhook-secret: Shopify webhook verification token.

Using the AWS CLI, you can create these parameters with a command like:

$ aws ssm put-parameter \
    --name "/shopify-trello-bridge/trello/list-id" \
    --type "SecureString" \
    --value "60b3da24124c475b5be6bg8d"