Goural
Goural

Reputation: 79

I want to trigger gitlab-ci pipeline, whenever there is an object put in AWS S3 bucket

I am looking for a way to trigger my gitlab ci pipeline whenever there is a object (with specific name) is added in S3 bucket.

I am new with AWS lambda, can someone please help

Upvotes: 3

Views: 1289

Answers (1)

sytech
sytech

Reputation: 41129

You can use s3 event notifications and deliver these events to other AWS services, including AWS Lambda or SQS queues.

Leveraging these event notifications, you could send the event directly to a lambda function that subscribes to putobject events and parses the event content structure to determine if an object of the specific name was created and use the create pipeline API to trigger pipelines on GitLab.

Architecture overview:

Architecture overview

Upvotes: 1

Related Questions