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
asked 4 years ago267 views
1 Answer
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
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions