89. Should you simulate AWS locally?
AWS Bites
Welcome to the epic tale of AWS Bites! In this chapter, we embark on a perilous journey through the challenges of developing distributed applications on AWS.
We encounter fierce foes in the form of deployment times and limited access to real AWS services during local development.
But fear not, for we have powerful tools at our disposal, including the legendary LocalStack and Serverless offline. And if that's not enough, we have tips and tricks for optimizing our development flow without local simulations, using well-structured code and unit tests. We even share CloudFormation tricks to speed up deployment times and reveal the secret of speeding up the development of IAM policies with Session Policies.
So grab your swords and join us on this epic adventure to overcome the challenges of local development on AWS!
💰 SPONSORS 💰
fourTheorem is the company that makes AWS Bites possible. If you are looking for a partner to accompany you on your cloud journey, check them out at fourtheorem.com !
🔖 Chapters:
00:00 Intro 01:29 Docker and Docker compose vs Serverless applications 02:15 Challenges with deploying in the cloud and doing many deployments per day 02:48 Options to simulate AWS locally (Localstack, Serverless offline, SAM local, and cargo-lambda) 08:30 Our recommendations for local development workflow 10:34 Cloudformation tricks to speed up deployment times 12:14 Speed up the development of IAM policies with Session Policies 13:28 Visual tools (Application Composer, Step Function Designer) 14:20 Summary and closing notes
In this episode, we mentioned the following resources:
- Localstack coverage: https://docs.localstack.cloud/user-guide/aws/feature-coverage/
- Localstack v2.0: https://www.infoq.com/news/2023/04/localstack-aws-version-two-ga/
- Cargo-Lambda: https://www.cargo-lambda.info/
- AWS .NET Mock Lambda Test Tool - https://aws.amazon.com/blogs/developer/debugging-net-core-aws-lambda-functions-using-the-aws-net-mock-lambda-test-tool/
- Step Functions Local - local Step Function simulation: https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local.html
- Article by Yan Cui on the topic of testing serverless applications: https://theburningmonk.com/2022/05/my-testing-strategy-for-serverless-applications/
You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast/aws-bites/id1585489017
- Spotify: https://open.spotify.com/show/3Lh7PzqBFV6yt5WsTAmO5q
- Google: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy82YTMzMTJhMC9wb2RjYXN0L3Jzcw==
- Breaker: https://www.breaker.audio/aws-bites
- RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss
Do you have any AWS questions you would like us to address? Leave a comment here or connect with us on Twitter:
#AWS #development #testing ... https://www.youtube.com/watch?v=h12FYXOrKZg
86197886 Bytes