Ruslan Plastun
Ruslan Plastun

Reputation: 2254

Best way to call third-party API from code-pipeline

I am just starting creating my code-pipeline and I want to create an action that will make API calls to Cloudflare. What is the best way to do that?

I guess I can simply make this API calls (write this commands) using CodeBuild, but is there an easier way to make this API calls? Maybe using Lambda or something else? Sorry if the question is too general and uncertain.

Upvotes: 0

Views: 830

Answers (1)

TimB
TimB

Reputation: 1577

CodeBuild or Lambda should work well for this. Lambda would probably work out slightly cheaper, but if you're not running your pipeline that often the difference won't add up to much.

If you decide to go with Lambda you can find details on how to do that here: https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html

Upvotes: 1

Related Questions