Тёмный

Running AWS Services In A Laptop Using LocalStack 

DevOps Toolkit
Подписаться 76 тыс.
Просмотров 47 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 RU-vid
@rodoherty1
@rodoherty1 2 года назад
Discovering your channel for the first time today - excellent stuff - subscribed!
@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......
@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.
@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.
@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.
@julianomoraisbarbosa
@julianomoraisbarbosa 2 года назад
Great video!
@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 :-(
@shivakumar-tx7qz
@shivakumar-tx7qz 2 года назад
Thanks ❤️
@DataMan90210
@DataMan90210 2 года назад
Thanks!
@DevOpsToolkit
@DevOpsToolkit 2 года назад
Thanks a ton!
@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.
@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.
@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.
@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 RU-vid 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.
@tonychia2227
@tonychia2227 6 месяцев назад
are you going to do a new video on localstack 3.0?
@DevOpsToolkit
@DevOpsToolkit 6 месяцев назад
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.
@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.
@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.
@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/).
@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), RU-vid 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.
@georgeelkins8011
@georgeelkins8011 2 года назад
Is there anything similar for GCP or Azure?
@DevOpsToolkit
@DevOpsToolkit 2 года назад
I haven't seen anything similar outside AWS :(
@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 🤣
@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.
@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.
@AsjadJawed
@AsjadJawed 2 года назад
ancient meaning more than a year or two :')
@markokraljevic1590
@markokraljevic1590 Год назад
ti si neki nas?
@DevOpsToolkit
@DevOpsToolkit Год назад
Jesam
@shuc1935
@shuc1935 2 года назад
You have personified and glorified the role "Developer Advocate"
Далее
Doors Harpy Hare (Doors 2 Animation)
00:16
Просмотров 951 тыс.
Testing Local AWS cloud with Localstack! | Tutorial
21:22
Localstack - AWS on your Laptop!
10:24
Просмотров 32 тыс.
Containers on AWS Overview: ECS | EKS | Fargate | ECR
25:10
How To Replace Docker With nerdctl And Rancher Desktop
18:50
Terraform Remote State Backend using S3 and DynamoDB
15:33
Introduction to AWS Services
38:54
Просмотров 2,2 млн
Doors Harpy Hare (Doors 2 Animation)
00:16
Просмотров 951 тыс.