Continuous Integration and Deployment with Serverless and CircleCI

  Рет қаралды 1,711

Complete Coding - Master AWS Serverless

Complete Coding - Master AWS Serverless

4 жыл бұрын

Creating a production ready serverless project with continuous integration and deployment with CircleCI
Code to start the video: github.com/SamWSoftware/Serve...
Code at the end of the video: github.com/SamWSoftware/Serve...

Пікірлер: 11
@ArthurFlores91
@ArthurFlores91 4 жыл бұрын
Thanks for the effort!! Very helpful tutorial! One question: what is the strategy to deploy via CircleCI serverless applications in different environments? I mean, my serverless.yml has variables associated w/ the environment and I also have branches associated w/ the each env.. How to put all this together? How to push code to development branch and deploy application to serverless development env? what about any other env? Thank!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
Great question. In the circle CI steps you have access to some extra variables around branches. You can use this to change the value things, such as profiles, in your build. Here's an example of that in a bash script that gets called by a build step: aws_profile=` case $CIRCLE_BRANCH in 'development' ) echo "profile_dev" ;; 'uat' ) echo "profile_uat" ;; 'master' ) echo "profile_prod" ;; ` You can then use that `aws_profile` in the sls deploy command. Because this is just bash, there's loads you could do with this. deploy to a bucket for each branch prefix all API urls with the branch name versioned releases
@ArthurFlores91
@ArthurFlores91 4 жыл бұрын
@@CompleteCoding Thank you again!! That worked smoothly!! Another question: I'm also using this node image to deploy serverless framework. Thing is: I'm using python3.7 as runtime for lambda.. What is the strategy to test my python scripts/functions/lambdas since I using this node image? As a requirement I need to install a specific python library (pytest) to perform the tests!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
There are other orbs available as part of Circle CI. There's definitely one for python so you should be able to use that and then run your python tests.
@khandoor7228
@khandoor7228 4 жыл бұрын
Fantastic, question: what are the advantages of CircleCI as opposed to AWS CodePipeline? Pricing?? free vs. cost?
@CompleteCoding
@CompleteCoding 4 жыл бұрын
I've not used code Pipeline yet (I'm learning it now) but have years of experience with CircleCI so it was easier for me to make this video well. They both have a free tier but I think CircleCI is normally cheaper (but could depend on your use case). There are also some features of CircleCI that I don't think Code Pipeline has yet, but also the same the other way around. In planning to do a Code Pipeline video soon and then maybe a comparison down the line.
@khandoor7228
@khandoor7228 4 жыл бұрын
@@CompleteCoding that sounds great and thank you. I know this stuff is changing rapidly.
@sourishdutta9600
@sourishdutta9600 4 жыл бұрын
Can you please make one video on How to design a serverless enterprise application with node js ? There are many videos on how to create Lambda, Create DynamoDB and connect with lambda also in s3 such things, But unfortunately, I am not able to find any design architecture for a big project in serverless. Like it is a quite tough modeling table in one serverless.yml. So it will very helpful if you share your knowledge and Thank you so much, appreciate you hard work sir, Thanks.
@CompleteCoding
@CompleteCoding 4 жыл бұрын
one of the advantages of Serverless is that it lends its self very well to micro-service based design. This means you can have quite small services that just work together. I'm planning on doing a video on how I've designed and built a serverless application.
@sourishdutta9600
@sourishdutta9600 4 жыл бұрын
@@CompleteCoding thank you so much it will be better if you also implement ci/cd with this i think that would be a nice approach using gitlab or other yml script. Thank you so much .
@sourishdutta9600
@sourishdutta9600 4 жыл бұрын
Hello sir can you please make one video how to set up debug mode in server less application for Windows and mac in vscode. I am new to this so I am having some issues with launch program, i am always having attribute program does not exist issue. Thank you
How to Create a Professional URL for AWS API Gateway
19:47
Complete Coding - Master AWS Serverless
Рет қаралды 5 М.
CI/CD Pipeline Project With CircleCI  | Hands On
20:08
DevOps Shack
Рет қаралды 6 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 27 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 30 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 121 МЛН
Stop, Intel’s Already Dead!
13:47
Linus Tech Tips
Рет қаралды 360 М.
Only 42% of Serverless Developers are doing this
17:06
Complete Coding - Master AWS Serverless
Рет қаралды 1,1 М.
Introduction to CI/CD:Jenkins to CircleCI
1:04:25
CircleCI
Рет қаралды 1,9 М.
Making Serverless CI/CD Easier with CircleCI and AWS
44:57
CircleCI
Рет қаралды 10 М.
How one mistake increased my AWS bill 525,000x
7:58
Complete Coding - Master AWS Serverless
Рет қаралды 2,6 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 66 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 554 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1,1 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,4 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 401 М.