Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 664 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 664 Bytes

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"
}