LarsFronius / commercetools-cdk-constructs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:TypeScript 90.7%Language:JavaScript 9.3%