How To Use GitHub Actions • Automate Your AWS Deployments

  Рет қаралды 4,938

pixegami

pixegami

Күн бұрын

Learn how to automate your code deployments with GitHub actions.
In this project, I'll show you how to use GitHub actions to automate the deployment (CI/CD) of an AWS project. The project is a simple Python API hosted on AWS Lambda (managed with AWS CDK).
We'll learn how to set up a simple GitHub action workflow to deploy the project to our AWS account on each commit. We'll also look at how to add a version number that increments automatically with each commit, and how to cache workflow steps (so we don't have to do the same things over and over again).
🔗 Links
Project Code: github.com/pixegami/aws-cicd-...
GitHub Actions: github.com/features/actions
AWS CLI: aws.amazon.com/cli/
AWS CDK: docs.aws.amazon.com/cdk/v2/gu...
📚 Chapters
00:00 Introduction
00:38 What is CICD?
01:51 Create an AWS CDK Project
05:46 Create GitHub Actions Workflow for CDK Deploy
10:18 Automate Version Bump with Git Hooks
12:42 Caching Workflow Steps
14:35 Deploy a Major Infrastructure Update

Пікірлер: 24
@JohnVold
@JohnVold 11 ай бұрын
Great stuff! I really appreciate how you started simple and then added more complexity. Makes it easier to follow :)
@pixegami
@pixegami 10 ай бұрын
Thanks! That's what I intended, so glad to hear it's worked for you :)
@Hellbending
@Hellbending 9 ай бұрын
You’re absolutely awesome bro! It’s good to see a KZbinr that is clear, concise and really explains those little questions that end up in the back of your head when you watch videos. And better still; really explores and fleshes out some of them with real-world use cases. Also nice to see another Aussie out here on the platform 👌 Never change brother, absolutely do not believe that you only have 11 K subs 🤣🤣🤣 so high quality content and not just the “high-level concept” stuff. Keep up the grind man you’re content is great and I love the style ❤
@pixegami
@pixegami 9 ай бұрын
Thank you 🙏 I really appreciate the message. I do put a fair bit of thought into structuring the videos and keeping them lean as possible, so it's encouraging to hear feedback like yours - especially from a fellow Aussie! 🦘
@VincentFulco
@VincentFulco 5 ай бұрын
You are a great and thorough teacher.
@pixegami
@pixegami 4 ай бұрын
Thank you!
@luke8818
@luke8818 9 ай бұрын
very useful, thanks!
@pixegami
@pixegami 9 ай бұрын
Glad it was helpful!
@ramiroalegre8183
@ramiroalegre8183 2 ай бұрын
useful information! thanks
@pixegami
@pixegami Ай бұрын
Glad it was helpful!
@anzakx
@anzakx 13 күн бұрын
Did something change with the deployment process. I am going through this and running into an issue where I get an error about an empty zip file but I did not see any steps about zipping the package.
@geebsayshi
@geebsayshi 10 ай бұрын
Great video thank you. You got a new subscriber. Can you do a similar video on deploying a Llama 2 model to AWS sage maker using GA?
@pixegami
@pixegami 10 ай бұрын
Thanks! I haven't used SageMaker or Llama yet but it looks like an interesting idea. I'll note it down for future video ideas. Thank you :)
@prajganesh
@prajganesh 9 ай бұрын
Do you use Typescript for CDK and Python for Lambda? Have you tried Golang by any chance?
@pixegami
@pixegami 9 ай бұрын
Yup! I like both Typescript and Python, so I will use TS whenever it's the native language (CDK, React, NextJS etc) , but I'm more comfortable with Python so I lean towards that for all other cases. I've used GoLang before, and it's quite nice to work in. It's faster than Python, but unless you really want that extra speed and type-safety, Python's wide adoption (libraries, SDKs, etc) is a stronger selling point for me.
@rhinethetauren
@rhinethetauren 4 ай бұрын
Great video! I am slightly stuck -- I have VS Code set up and connected to GH , and GH setup with AWS through secrets / actions. However, I don't have a .git folder in my VS Code repo in order to locate the pre-commit hook. How's your VS Code have that, is it a separate plugin or did I init Git incorrectly? ~11min30s Edit: I was able to fix that by updating JSON Settings for exclude .git: false
@pixegami
@pixegami 4 ай бұрын
Glad you solved it :)
@mateuszbieda3189
@mateuszbieda3189 Ай бұрын
Where to create AWS key and secret key into the environment variable for your GitHub Actions page? Is it in the Secret Manager on AWS?
@pixegami
@pixegami 28 күн бұрын
Nah, for this one, to keep it simple I just store all my environment variables on GitHub's secret manager (not the AWS one). Even if you store secrets in AWS, you'll still need some secrets in GitHub anyway, so your GitHub workflow can access AWS.
@eclecticism
@eclecticism 6 ай бұрын
im first. Unable to resolve AWS account to use. It must be either configured when you define your CDK Stack, or through the environment error
@pixegami
@pixegami 5 ай бұрын
Hmm, did you set your AWS key and secret key into the environment variable for your GitHub Actions page?
@eclecticism
@eclecticism 5 ай бұрын
@@pixegami fix thanx
@lelandconn
@lelandconn 2 ай бұрын
Deploying it the first time worked but now am facing error "Cannot find module './aws-cicd-tutorial-stack.ts'
@pixegami
@pixegami Ай бұрын
Hmm, sorry - it's a bit hard for me to debug or help, without seeing the full context of the project :( But if it worked the first time, can you compare what's changed between then and now?
How to Deploy FastAPI on AWS EC2: Quick and Easy Steps!
13:48
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 393 М.
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 79 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 30 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4,2 МЛН
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 468 М.
Deploy Spring Boot application to AWS EC2 using GitHub Actions
25:33
Integration Ninjas
Рет қаралды 10 М.
GitHub Actions (Branch Protection, Automated Testing) - Full Tutorial
29:56
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 79 МЛН