# Serveless deployment using cloudformation codepipeline

**URL:** <https://forum.serverless.com/t/serveless-deployment-using-cloudformation-codepipeline/11637>\
**Category:** Serverless Framework\
**Tags:** cloudformation\
**Created:** [June 1, 2020, 1:19pm UTC](https://forum.serverless.com/t/serveless-deployment-using-cloudformation-codepipeline/11637 "2020-06-01T13:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilippatidar123](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/dilippatidar123/32/4298_2.png) [@dilippatidar123](https://forum.serverless.com/u/dilippatidar123)\
**Post date:** [June 1, 2020, 1:19pm UTC](https://forum.serverless.com/t/serveless-deployment-using-cloudformation-codepipeline/11637/1 "2020-06-01T13:19:26Z")

</div>

Hi Team,

Currently we are using cloudformation(SAM) pipeline to deploy our code to AWS.  
Following steps we are performing :-

Source ( CodeCommitRepo)-\> Build ( CodeBuild)-\> DeployToDev[CreateChangeSet) -\> ExecuteChangeSet]  
In Build we are creating artifect and uploading to S3.

Now we are planing to switch to serverless.  
Serverless we are using following steps:-

Source (CodeCommitRepo)-\> Build (CodeBuild)  
In codebuild we are using sls deploy (which will create the stack in build step only)

Can we perform same step as SAM which will create package in build step, execute change set and create stack using package artifact.

Please suggest.

Thanks,  
Dilip

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [June 1, 2020, 2:53pm UTC](https://forum.serverless.com/t/serveless-deployment-using-cloudformation-codepipeline/11637/2 "2020-06-01T14:53:05Z")

</div>

It would probably just be easier to let the Serverless Framework do the entire deployment. Perhaps take a look at the Serverless Framework CI/CD solution: [https://www.serverless.com/blog/announcement-cicd](https://www.serverless.com/blog/announcement-cicd)
