# How to setup AWS CodePipeline, CodeBuild & CodeDeploy using serverless?

**URL:** <https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [December 10, 2017, 9:47am UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290 "2017-12-10T09:47:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![albertvila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/albertvila/32/1386_2.png) [@albertvila](https://forum.serverless.com/u/albertvila)\
**Post date:** [December 10, 2017, 9:47am UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290/1 "2017-12-10T09:47:12Z")

</div>

Does anyone know if it’s possible to do such a thing? I would like to create and setup my AWS CodePipelines, CodeBuild and CodeDeploy through serverless framework for my CI workflow.

Thanks

---

<div class="post-metadata">

**Author:** ![bill](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bill/32/1072_2.png) [@bill](https://forum.serverless.com/u/bill)\
**Post date:** [December 10, 2017, 11:28am UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290/2 "2017-12-10T11:28:58Z")

</div>

My question is, why you choice Serverless Framework to manage aws Developer Tools (include CodePipeline, CodeBuild & CodeDeploy)?

Are they serverless related?

Take a look about [Terraform](https://www.terraform.io/), looks more suitable for your request.

[https://www.terraform.io/docs/providers/aws/r/codepipeline.html](https://www.terraform.io/docs/providers/aws/r/codepipeline.html)

[https://www.terraform.io/docs/providers/aws/r/codebuild\_project.html](https://www.terraform.io/docs/providers/aws/r/codebuild_project.html)

[https://www.terraform.io/docs/providers/aws/r/codedeploy\_app.html](https://www.terraform.io/docs/providers/aws/r/codedeploy_app.html)

---

<div class="post-metadata">

**Author:** ![albertvila](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/albertvila/32/1386_2.png) [@albertvila](https://forum.serverless.com/u/albertvila)\
**Post date:** [December 11, 2017, 8:43am UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290/3 "2017-12-11T08:43:45Z")

</div>

Yes you are right, and thanks to point it out, I’ll take a look at terraform that seems more suitable.

I just wanted to centralize it in one point, as with serverless I’m able to create kinesis, sqs and other resources I though that maybe I could use it for CI too.

---

<div class="post-metadata">

**Author:** ![snolangps](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/snolangps/32/2582_2.png) [@snolangps](https://forum.serverless.com/u/snolangps)\
**Post date:** [September 25, 2018, 7:38pm UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290/4 "2018-09-25T19:38:05Z")

</div>

Why wouldn’t someone want to? I’m curious and to keep everything “serverless”, wouldn’t that be in the scope of a project?

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [September 30, 2018, 8:15am UTC](https://forum.serverless.com/t/how-to-setup-aws-codepipeline-codebuild-codedeploy-using-serverless/3290/5 "2018-09-30T08:15:24Z")

</div>

> [@snolangps](#):
>
> wouldn’t that be in the scope of a project?

Not really. Typically your CI/CD pipeline would use the Serverless Framework only at the very end to handle deployment and updating infrastructure needed by the functions. This means you need CodePipeline, CodeBuild and CodeDeploy setup first.

I would create another project using CloudFormation or Terraform to create your CI/CD infrastructure.
