Attach extra data to SNS notifications generated by codebuild

0

Hello,

I have a codebuild project that produces artifacts uploaded to s3.

I am trying to push one of these artifacts which has the JSON format to a elasticache cluster. I'm exploring the option to use codebuild notifications provided by SNS to trigger a lambda which will run the code to push the data to memcached.

I am not able to find a way to customize the codebuild notification pushed to SNS to include some of the data produced by my build. Is this possible at all? Is it possible to provide extra JSON blob or raw strings to be added to the SNS notification data generated by codebuild?

Alternatively, is there a better approach I should be exploring instead?

Thanks for any help or recommendation!

Edited by: RomainG on Jul 27, 2020 5:48 PM

RomainG
已提问 4 年前286 查看次数
1 回答
0

If anybody comes around this with a similar idea, it doesn't seem to be a good approach.

I went ahead with an alternative approach which involves triggering a lambda from the upload of my artifacts into s3, bypassing SNS entirely.

RomainG
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则