No video

Running AWS Services In A Laptop Using LocalStack

  Рет қаралды 46,779

DevOps Toolkit

DevOps Toolkit

Күн бұрын

Пікірлер: 77
@jwrauen
@jwrauen 2 жыл бұрын
Localstack has also developed an AWS CLI wrapper call awslocal which will point the cli commands at your running localstack configuration. This is my preferred method over setting an alias.
@maheshbansode2686
@maheshbansode2686 2 жыл бұрын
Saw the video title and Subscribed! This the kind of content I want to watch on KZbin
@alcar32sharif
@alcar32sharif 2 жыл бұрын
This is exactly what I need. An AWS local Simulator / Mock / Stub. If it also calculates the cost of simulation. This would absolutely perfect to apply cost predictions.
@rw-xf4cb
@rw-xf4cb 2 жыл бұрын
Been using Moto since 2014 to do my AWS mock testing its a good mocking system and free. It only mocks API calls but can run Lambda code and store test objects in S3. Using it as Motoserver can have any SDK, Terraform or AWS CLI commands calling using the endpoints. Contributors welcome to extend its capability......
@rodoherty1
@rodoherty1 2 жыл бұрын
Discovering your channel for the first time today - excellent stuff - subscribed!
@jdu1111
@jdu1111 2 жыл бұрын
I could see this being an integral step in CI/CD pipelines now. Ensure that your IaC changes are successful on localstack, run tests, and deploy to production
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
... one model could be to use lovalstack with Para and AWS when merging those Pars.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Do you think it might be useful to have functional mocks of AWS services running locally on your computer? The latest release (shipped only a few days after the video was made) comes with support for ARM64. You can now run LocalStack natively on your Apple M1 - or even your Raspberry Pi! Please check out the 0.13.0 release notes in the Github repo for more details. IMPORTANT: For reasons I do not comprehend (and Google support could not figure out), KZbin tends to delete comments that contain links. Please do not use them in your comments.
@hamstar7031
@hamstar7031 2 жыл бұрын
Great video! In my opinion, local mocks are good since you can setup simple demo's of running AWS services and AWS solutions that you can show to clients or other people. This is useful for small app demos or just testing before you commit to provisioning the services on AWS cloud itself.
@hamstar7031
@hamstar7031 2 жыл бұрын
One thing I wish to see if there is or will LocalStack support other cloud providers like Azure or Google. I checked their site and the tool is more catered to AWS services. So it seems it will really focus on that. Still wishful thinking for other cloud services to have a tool similar to LocalStack to create mock services non AWS.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@hamstar7031 From what I know, there is no ambition to expand LocalStack beyond AWS. That's a pity since it would be very useful to have the same ability with other providers. On the other hand, AWS alone is a huge challenge. There are quite a few AWS services that were not implemented or not yet stable or fully functional.
@hamstar7031
@hamstar7031 2 жыл бұрын
​@@DevOpsToolkit I agree that AWS alone is a huge challenge having these run locally via LocalStack. Seeing their issue tracker a lot of AWS services like Lambda Functions (just to name one) needs improvements. But the tool has a lot of potential specially if the issues are addressed over time.
@SelfhostedPro
@SelfhostedPro 2 жыл бұрын
Think this is the earliest I've been to one of your videos. Thanks for putting out quality content like this! Thanks to you I'm working on moving my company over to use kubernetes and you've helped show me tools to make that infinitely easier!
@DudeSkinnyTall
@DudeSkinnyTall 2 жыл бұрын
I needed these intricacies, thanks, Viktor
@pseabrook
@pseabrook 2 жыл бұрын
Amazing videos man! Please keep releasing more!
@kelvinchow3663
@kelvinchow3663 Жыл бұрын
Great, I am going to pay Localstack, after setting up some trials
@DevOpsToolkit
@DevOpsToolkit Жыл бұрын
That sounds great. OSS projects need dedication. There is not dedication without income.
@julianomoraisbarbosa
@julianomoraisbarbosa 2 жыл бұрын
Great video!
@wilcosec
@wilcosec 2 жыл бұрын
Great overview. Too bad about the lack of features when running on k8s. Thanks!
@edenr1988
@edenr1988 2 жыл бұрын
Looks interesting, thanks for sharing 👍. It's very disappointing to know that docker is still a prerequisite in order to use it. I think they should at least give the option to choose which container runtime to use.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Agreed completely and transmitted that message directly to the team behind the project.
@gvoden
@gvoden 2 жыл бұрын
Re:invent 2021 announcement - Amazon LocalStack
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
I wouldn't be surprised if AWS does purchase LocalStack. That would be a relatively cheap acquisition.
@fenarRH
@fenarRH 2 жыл бұрын
For me as AWS consumer, most of the tests I would like to do simulate/emulate on my local machine mainly be around do/verify the security of my solution, understand the cost of my aws consumption rest like faking a db creation etc not sure make sense other than direct use from aws native api. When I checked what's in free tier none of them there although it says IAM included but not for security/policy enforcements :-(
@DataMan90210
@DataMan90210 2 жыл бұрын
Thanks!
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Thanks a ton!
@shivakumar-tx7qz
@shivakumar-tx7qz 2 жыл бұрын
Thanks ❤️
@saireddybonthu985
@saireddybonthu985 2 жыл бұрын
I feel like this is good for students.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
It's good for anyone who wants to practice or run tests (manual or automated) against AWS.
@andreashe36
@andreashe36 2 жыл бұрын
The big problem is: there is no GUI. Setting up the env is a pain and you need to invest a lot of time in cloudformation or terraform.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
It is true that Terraform and other IaC tools require time to learn. However, once you master them, they tend to save a lot of time, not to mention avoid random stuff from happening. The only case when such tools might not be a good idea is if it's a very small company with small operations and only a single person working on infra. The moment the number of resources in AWS scales, managing them all through the Web Console starts taking more (not less) time than with IaC. Also, I'm not sure that AWS is a good choice when dealing with a relatively small size. Something like DigitalOcean, Linode, etc. might be a better choice. AWS is complex mostly because it's based on building blocks rather than "final" solutions. That's intentional because larger orgs need building blocks to assemble exactly what they need but that results in elevated complexity that is made manageable through IaC. If that complexity is not needed, other vendors are a better choice.
@andreashe36
@andreashe36 2 жыл бұрын
@@DevOpsToolkit I did some experiments with localstack but was not satisfied. Also because I needed to restart it often for a test. At the end I went to mocking AWS in unit tests with moto. The benefit there is also a lot of unit tests which are also performed during codebuild. I will watch on localstack and hope there will be an alternative GUI from someone for AWS/Localstack which is also able to export all in cloudformation files.
@RideLikeAChamp
@RideLikeAChamp 2 жыл бұрын
does it have support for creating eks cluster using eksctl or we need to call the aws cli for creating infra labyrinth one after another to spin up an eks cluster? May be you have already started working on the XR for EKS using crossplane with localstack as the provider.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
I tend to use Crosplane and Terraform most of the time so I haven't tried it with eksctl. A quick look at the params did not reveal the option to specify an endpoint (like what I did with the `alias` in the video). If there is no way to change it, eksctl will probably not work with LocalStack. As for Crossplane... We already added the option to specify the endpoint in ProviderConfig, so LocalStack and Crossplane can work together. The major problem now is that LocalStack relies on Docker making it not very useful inside k8s clusters. I will make a video about the combination, I'm just not sure when. Probably sometime in January. Also, I might publish it in the Upbound channel and not here.
@RideLikeAChamp
@RideLikeAChamp 2 жыл бұрын
@@DevOpsToolkit Another related update got deleted, I see a trend but that is not important here. From the list of registered services per your gist , I could only make s3 work , rest all failed citing no provider found although I installed localstack using the helm chart on a local k3d cluster, does it matter if the local k8s cluster is k3d, minikube, kind or rancher. It should be more friendly with docker daemon running underneath k3d but turns out sans s3 and to some extent ec2 all other services in the list you selected for demo failed. Especially disappointed with failure to provision RDS which worked for you. Failure with ecr and ekr are in line with your observation despite I am having docker running.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@RideLikeAChamp I haven't tried it with k3d (yet). So far I used it with Rancher Desktop and GKE and those that worked in the video worked in both of those k8s distributions. That being said, LocalStack folks definitely need to transition from Docker-based solution to something that works in k8s (instead of just wrapping the binary into a container running in k8s but failing with too many resources). My understanding is that LocalStack team is aware of the need to improve it in k8s. However, I would still ask you to comment it in their Slack channel or, even better, create a GitHub issue. The more people report problems in k8s or complain about it, the more priority that will be for the team to work on.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@RideLikeAChamp ... as for KZbin comments... I honestly do not understand the criteria YT uses to choose what to keep and what to delete. For me, it's very painful since quite a few viewer's comments are deleted without any obvious reason.
@david_blackstar
@david_blackstar 2 жыл бұрын
throwing a dumb idea here... but... if you manage to do a symlink from.. let's say podman which should likely handle every docker command... Could that be a workaround for those services that don't work within kubernetes? I hope they are not trying to connect directly to the docker REST endpoint directly...
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Those requests to Docker are happening on server-side inside a k8s cluster. That means that Podman or any other similar cannot help. If LocalStack is running in k8s, there cannot be any relation to Docker no matter whether that's through API, mounted sockets, or anything else. There is no Docker in k8s (except in the cases when people are prolonging the inevitable). As it is now, the only viable option is to run LocalStack directly or in Docker, but not in k8s. That's the main issue I have with it and I hope it'll be fixed soon.
@StephenRayner
@StephenRayner 2 жыл бұрын
Would like to see examples with Terraform
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Adding it to my TODO list... :)
@StephenRayner
@StephenRayner 2 жыл бұрын
@@DevOpsToolkit Open to discuss this / work on this with you if you like. I've got a rather advanced use case that I need to flesh out eventually. (lots of resources multiple terraform projects - folders -).
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@StephenRayner my main problem is time. When I look at the list of mandatory tasks I have to work on, I doubt I'd be able to get to that one any time before January or later. What I can do however is to get you in touch with the devs working on the project. Would that help?
@StephenRayner
@StephenRayner 2 жыл бұрын
We can compile the findings and turn that into a video.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@StephenRayner That sounds great. We can do a video similar to those I do in this channel or we can do a webinar together with the LocalStack folks. They asked me to do something like that a few days ago.
@mehdimohammadi1623
@mehdimohammadi1623 2 жыл бұрын
For me trying to create the rds instance leads to this error: Unable to parse response (not well-formed (invalid token): line 1, column 0), invalid XML received. Further retries may succeed. Anyone can help why it is happening?
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
RDS is a Pro feature that requires an API key. Can you check whether you used a valid key as per instructions in lines 21 and 23 in the Gist?
@mehdimohammadi1623
@mehdimohammadi1623 2 жыл бұрын
@@DevOpsToolkit I have created billing for 14 days trial but local stack does not generate the API key for me, Am I need to do any other step to get trial API key?
@mehdimohammadi1623
@mehdimohammadi1623 2 жыл бұрын
For me seems like they have a bug in the dashboard, they allow creating a trial plan without address and payment but they do not issue API key, if the user fulfills the address and card info later, the user is not able to peak the created plan!
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
​@@mehdimohammadi1623 The team behind LocalStack made some changes to the API and it seems that there are some rough edges they still need to fix. Until then, you should see the API key if you go to Account > BIlling > Pro Edition - Free Trial.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@mehdimohammadi1623 You're right. It's a bug in the dashboard introduced by some recent changes. It should be fixed soon.
@tonychia2227
@tonychia2227 5 ай бұрын
are you going to do a new video on localstack 3.0?
@DevOpsToolkit
@DevOpsToolkit 5 ай бұрын
Maybe later. It's not in my list for the next few videos.
@rehanhoda7960
@rehanhoda7960 2 жыл бұрын
Is it like a sandbox? Correct me if I am wrong.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
It's more like a fully functional mock of AWS services that you can use for practicing, testing, etc.
@AsjadJawed
@AsjadJawed 2 жыл бұрын
ancient meaning more than a year or two :')
@DileepKumarMB
@DileepKumarMB Жыл бұрын
Hi, Is there any video on "localstack with STS" ? I hardly see videos around using STS with localstack on youtube. can you make one vide on this ?
@DevOpsToolkit
@DevOpsToolkit Жыл бұрын
I'm not sure I'll make more videos about localstack.
@DileepKumarMB
@DileepKumarMB Жыл бұрын
@@DevOpsToolkit Thank you for your quick reply. Below is my scenario: Actually i have installed localstack as a pod in my kubernetes environment. My pod want to get the temp credentials from STS service.
@gvoden
@gvoden 2 жыл бұрын
Viktor, what's in the box? :)
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
The one behind me? I don't think I ever opened it. My girlfriend put it there and I never bothered to check out what inside.
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Hopefully not divorce papers :)
@gvoden
@gvoden 2 жыл бұрын
@@DevOpsToolkit 🤣
@jonathanorrego6199
@jonathanorrego6199 2 жыл бұрын
Is there a way to create a VPN and just use the local machine like you are in an EC2 instance?
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
I'm not sure I understood. Are you trying to create (simulate) AWS VPN? If that's the case, it is available (docs.localstack.cloud/aws/feature-coverage/).
@xammocoloniax
@xammocoloniax 2 жыл бұрын
Awesome product but crazy price for pro, $28 or $35 per user per month. :(
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
That can indeed be very expensive if purchased for everyone. However, often only a handful of people need that license and in that case it's not that much.
@georgeelkins8011
@georgeelkins8011 2 жыл бұрын
Is there anything similar for GCP or Azure?
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
I haven't seen anything similar outside AWS :(
@shuc1935
@shuc1935 2 жыл бұрын
You have personified and glorified the role "Developer Advocate"
@johncruz5566
@johncruz5566 2 жыл бұрын
Can i create a VPC using this localstack?
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
As far as I know, VPCs are not supported directly. You can reference them in other resources, but you cannot create them.
@markokraljevic1590
@markokraljevic1590 Жыл бұрын
ti si neki nas?
@DevOpsToolkit
@DevOpsToolkit Жыл бұрын
Jesam
Localstack - AWS on your Laptop!
10:24
DevOps Journey
Рет қаралды 32 М.
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 65 МЛН
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 15 МЛН
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 16 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3,1 МЛН
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,5 МЛН
A Simple Riddle You Probably Will Get Wrong. The Watermelon Paradox!
10:40
MindYourDecisions
Рет қаралды 146 М.
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 173 М.
How To Replace Docker With nerdctl And Rancher Desktop
18:50
DevOps Toolkit
Рет қаралды 50 М.
Testing Local AWS cloud with Localstack! | Tutorial
21:22
Tech with Marco
Рет қаралды 3,3 М.
Cloud-Native Applications And NOT Infrastructure Code - Klotho
24:13
How LocalStack is recreating AWS with Python - Thomas Rausch
28:53
EuroPython Conference
Рет қаралды 607
AWS Identity and Access Management (IAM) Basics | AWS Training For Beginners
19:13
Tiny Technical Tutorials
Рет қаралды 80 М.
Top AWS Services A Data Engineer Should Know
13:11
DataEng Uncomplicated
Рет қаралды 160 М.
Resize Images with Node.js and AWS Lambda (and S3)
13:12
Nikita Dev
Рет қаралды 11 М.
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 65 МЛН