Implemented resource types:
- Subscriptions
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"
}