Skip to content

Commit

Permalink
feat: also publish to old SNS a message with attributes for ABRegistr…
Browse files Browse the repository at this point in the history
…y integration (#515)
  • Loading branch information
aleortega authored Dec 5, 2024
1 parent 2a4a875 commit f072ccb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/adapters/deployer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ export function createDeployerComponent(
const receipt = await client.send(
new PublishCommand({
TopicArn: components.sns.arn,
Message: JSON.stringify(deploymentToSqs)
Message: JSON.stringify(deploymentToSqs),
MessageAttributes: {
type: { DataType: 'String', StringValue: Events.Type.CATALYST_DEPLOYMENT },
subType: { DataType: 'String', StringValue: entity.entityType as Events.SubType.CatalystDeployment }
}
})
)
logger.info('Notification sent', {
Expand Down

0 comments on commit f072ccb

Please sign in to comment.