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
demandé il y a 4 ans286 vues
1 réponse
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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions