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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠