Skip to content

LarsFronius/commercetools-cdk-constructs

Repository files navigation

Commercetools CDK Constructs

Implemented resource types:

  • Subscriptions

Usage

const eventBus = new EventBus(this, 'EventBus')
new CommercetoolsSubscription(this, 'CTToEventBusSubscription', {
    messages: [{
        resourceTypeId: "product",
        types: [ ]
    }],
    changes: [],
    projectKey: props.ctProjektKey,
    secret: Secret.fromSecretNameV2(this, 'CTSecret', `/ct/${props.envName}/commercetools-subscription-mgmt`),
    target: new EventbridgeSubscriptionTarget(this.eventBus)
})

the secret format the custom resource expects is in the format of

{
  "CT_CLIENT_ID": "foo",
  "CT_CLIENT_SECRET": "bar"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published