In this episode Eoin and Luciano try to reply to a question suggested by Emily Shea on Twitter ( https://twitter.com/em__shea ): When do you use Step Functions?
Our answer describes what Step Function is and what you can build with it. We discuss some examples of features that we built in the past using step functions (a billing engine and a crawler) and why. We also discuss what are the main advantages of Step Functions and some things to be aware of, including limitations, cost and when not to use Step Functions.
CloudWatch is a great service for metrics. You get tons of metrics out of the box and you can also create your custom ones. One of the most important things you can do with metrics is to create alarms, so how do we get the most out of CloudWatch alarms?
In this episode we share our insights and cover the different types of alarms that exist, how to create an alarm, what to do when an alarm is triggered, a few examples of useful alarms and some of the drawbacks of CloudWatch alarms and how to overcome them.
⏱ Timing:
00:00 Intro
00:50 Different types of Alarms (standard and composite)
01:40 How to create an alarm
03:39 Some examples and use cases for CloudWatch Alarms
05:00 States of an alarm
06:45 How to get notified (Email, custom integrations with Lambda, chat bots)
09:34 What to do once an alarm fires?
12:04 Example use cases for composite alarms
14:27 Cross accounts alarms
15:43 Other use cases and examples for alarms (Alarms based on business metrics, Reactive vs Proactive alarms, Anomaly based alarms, Asynchronous computation)
22:00 Drawbacks of CloudWatch alarms
23:25 SLIC Watch for automatically provisioning alarms with Serverless framework projects
24:30 CloudWatch alarms costs
25:45 Outro
In this episode, we mentioned the following resources:
- Our previous episode on CloudWatch metrics: https://www.youtube.com/watch?v=vwo2jXfyooQ
- SLIC Watch, a serverless framework plugin that generates sensible alarms and dashboard automatically: https://fth.link/slic-watch
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:
- https://twitter.com/eoins
- https://twitter.com/loige
#aws #alarms #cloudwatch
...
https://www.youtube.com/watch?v=rk4QMJf6R4U
In this episode, we discuss best practices for working with AWS Lambda. We cover how Lambda functions work under the hood, including cold starts and warm starts. We then explore different invocation types - synchronous, asynchronous, and event-based. For each, we share tips on performance, cost optimization, and monitoring. Other topics include function structure, logging, instrumentation, and security. Throughout the episode, we aim to provide a solid mental model for serverless development and share our experiences to help you build efficient and robust Lambda applications.
? SPONSORS ?
AWS Bites is brought to you by fourTheorem, an AWS Partner that specialises in modern application architecture and migration. We are big fans of serverless and we have worked on quite a few serverless projects even at a massive scale! If you are curious to find out more and to work with us, check us out at fourtheorem.com!
? Chapters:
00:00 Intro
01:04 Overview of how Lambda works - serverless, event-driven, cold starts
05:12 Types of Lambda invocation - synchronous, asynchronous, event-based
11:20 Lambda cost model and performance optimizations
16:08 Structuring Lambda functions for testability and separation of concerns
20:10 Lambda Power Tools - logs, metrics, traces, idempotency
22:38 Other quick tips about configuration, secrets, infrastructure as code, and security
25:27 Conclusion and additional resources for learning Lambda best practices
In this episode, we mentioned the following resources:
- Ep. 110 "Why should you use Lambda for Machine Learning?": https://awsbites.com/110-why-should-you-use-lambda-for-machine-learning/
- Ep. 108 "How to Solve Lambda Python Cold Starts": https://awsbites.com/108-how-to-solve-lambda-python-cold-starts/
- Ep. 104 "Explaining Lambda Runtimes": https://awsbites.com/104-explaining-lambda-runtimes/
- Ep. 92 "Decomposing the Monolith Lambda": https://awsbites.com/92-decomposing-the-monolith-lambda/
- Ep. 64 "How do you write Lambda Functions in Rust?": https://awsbites.com/64-how-do-you-write-lambda-functions-in-rust/
- Ep. 65 "Solving SQS and Lambda concurrency problems": https://awsbites.com/65-solving-sqs-and-lambda-concurrency-problems/
- Ep. 10 "Lambda or Fargate for containers?": https://awsbites.com/10-lambda-or-fargate-for-containers/
- Ep. 4 "What language should you use for Lambda?": https://awsbites.com/4-what-language-should-you-use-for-lambda/
- Ep. 6 "Is AWS Lambda cheap or expensive?": https://awsbites.com/6-is-aws-lambda-cheap-or-expensive/
- Article: "What do you need to know about SNS?": https://fourtheorem.com/what-do-you-need-to-know-about-sns/
- Article: "What can you do with EventBridge": https://fourtheorem.com/what-can-you-do-with-eventbridge/
- Article: "What do you need to know about SQS?": https://fourtheorem.com/what-do-you-need-to-know-about-sqs/
- Yan Cui's video about using Lambda Destinations instead of DLQs: https://www.youtube.com/watch?v=hOetf6YN3zo
- Profiling functions with AWS Lambda Power Tuning: https://docs.aws.amazon.com/lambda/latest/operatorguide/profile-functions.html
- Blog post by Luca Mezzalira about hexagonal architectures for Lambda: https://aws.amazon.com/blogs/compute/developing-evolutionary-architecture-with-aws-lambda/
- Ep. 41 "How can Middy make writing Lambda functions easier?": https://awsbites.com/41-how-can-middy-make-writing-lambda-functions-easier/
- SLIC Watch for automated dashboards and alarms: https://github.com/fourTheorem/slic-watch
- Ep. 35 "How can you become a Logs Ninja with CloudWatch?": https://awsbites.com/35-how-can-you-become-a-logs-ninja-with-cloudwatch/
- Ep. 34 "How to get the most out of CloudWatch Alarms?": https://awsbites.com/34-how-to-get-the-most-out-of-cloudwatch-alarms/
- Ep. 33 "What can you do with CloudWatch metrics?": https://awsbites.com/33-what-can-you-do-with-cloudwatch-metrics/
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 X, formerly Twitter:
- https://twitter.com/eoins
- https://twitter.com/loige
#aws #lambda #serverless #bestpractice
...
https://www.youtube.com/watch?v=EgqVPlRjeE8
AWS ECS is a powerful service that allows you to run containerized applications at scale. It's suitable for a variety of use cases, including web applications, microservices, and background processing.
In this episode, we'll provide an introduction to the main concepts of ECS and then dive into cost-optimization strategies. We'll explore the different options for running containers on ECS, including EC2, Fargate, and ECS Anywhere.
We'll discuss various opportunities for saving money, such as using Arm (Graviton) instances, Spot instances, Compute Savings Plans, and RIs or EC2 Saving Plans.
Finally, we'll cover how to set up ECS to use Spot instances, including how to create capacity providers and specify a capacity provider strategy. We'll also discuss whether it's always best to use EC2 instead of Fargate for cost optimization and recommend some tools that can help you find other opportunities to save on container costs.
? SPONSORS ?
AWS Bites is sponsored by fourTheorem (https://fourtheorem.com). fourTheorem is an AWS Consulting Partner offering training, cloud migration, and modern application architecture.
? Chapters:
00:00 Intro
01:09 Intro to ECS and the main concepts around it
04:32 How does ECS work (EC2-based and serverless mode with Fargate)
06:41 Ideas to save on cost with ECS (Gravitron, Spot instances, Compute saving plans, Reserved instances, ECS Anywhere)
11:15 Can you mix cost-saving strategies?
11:40 Is EC2 the most convenient option?
13:05 How to set up ECS to use Spot Instances?
17:30 Can I just use Spot for everything?! How does spot even work?
18:45 Other cost items to consider & tools
20:50 Closing notes
In this episode, we mentioned the following resources:
- Saving Plan calculator: https://aws.amazon.com/savingsplans/compute-pricing/
- EC2 instance selector: https://github.com/aws/amazon-ec2-instance-selector
- Spot prices dashboard by Vantage: https://instances.vantage.sh/
- Fargate Right Sizing dashboard: https://github.com/mreferre/container-insights-custom-dashboards/tree/master/fargate-right-sizing
- AWS Cost Explorer rightsizing recommender for EC2: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-rightsizing.html
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:
- https://twitter.com/eoins
- https://twitter.com/loige
#AWS #ECS #cost
...
https://www.youtube.com/watch?v=kx0zvD0jNK0
In this episode, we discuss AWS Resource Access Manager (RAM) and how it can be used to securely share AWS resources like VPC subnets, databases, and SSM parameters across accounts. We explain the benefits of using RAM over other options like resource policies and assumed roles. Some key topics covered include how to get started with RAM, how it works from the resource owner and resource participant side, and common use cases like sharing VPC subnets, Aurora databases, and SSM parameters.
? SPONSORS ?
AWS Bites is brought to you by fourTheorem, the AWS consulting partner with lots of experience with AWS, Serverless, and Lambda. If you are looking for a partner that can help you deliver your next Serverless workload successfully, look no further and reach out to us at https://fourtheorem.com
? Chapters:
00:00 Intro
00:48 AWS Resource Access Manager and the problems it solves
02:07 Common use cases for using RAM (sharing VPC subnets and the benefits over VPC peering)
05:50 Sharing SSM parameters with RAM
06:47 What is the process for sharing resources with RAM and what are the options available
09:55 Sharing from the participant side, what can they see and do?
12:59 Summary and closing notes
In this episode, we mentioned the following resources:
- Sharing Aurora Databases with RAM (Conor Maher's article): https://fourtheorem.com/using-aws-resource-access-manager-for-development/
- Blog post "VPC Lattice: The Future of AWS Networking Explained": https://fourtheorem.com/vpc-lattice/
- Our previous episode dedicated to VPC Lattice: https://awsbites.com/88-what-is-vpc-lattice/
- VPC Lattice sample code base: https://github.com/fourTheorem/vpc-lattice-demo
- Sharing AWS Systems Manager Parameters official announcement: https://aws.amazon.com/about-aws/whats-new/2024/02/aws-systems-manager-parameter-store-cross-account-sharing/
- Official documentation for what can be shared with RAM: https://docs.aws.amazon.com/ram/latest/userguide/shareable.html
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 X, formerly Twitter:
- https://twitter.com/eoins
- https://twitter.com/loige
#aws #permissions #iam #policy
...
https://www.youtube.com/watch?v=RL0IYfkSbJg
What are the benefits of Tags? You have probably seen that you can add tags to almost every resource in AWS… but should you really do it? And if you do it, what are the benefits?
In today’s episode Eoin and Luciano cover what tags are, some examples of how to use them and what kind of benefits they can give you and your team. Finally we’ll give you a bunch of ideas on how to build a tagging strategy and get value from tags!
00:00 Intro
00:46 What tags are
02:22 Use cases tags enable
05:43 How to create tags
09:10 Recommended tags
12:20 How to enforce that resources are correctly tagged
18:02 Tagging limitations and quotas
19:37 Best practices and recommendations
23:36 Summary
24:49 Outro
In this episode, we mentioned the following resources:
- Resource group tagging (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/overview.html)
- Controlling access to AWS resources using tags https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html
- Enforce tagging via SCP (Service Control Policies): https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples_tagging.html#example-require-tag-on-create
- Use AWS Config to create rules that can alarm if some resources are not compliant: https://aws.amazon.com/premiumsupport/knowledge-center/config-resource-non-compliant/
- Example on how to use CloudTrail to automatically tag newly created resources: https://aws.amazon.com/blogs/mt/auto-tag-aws-resources/
- Archived AWS white paper on tagging best practices: https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf
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:
- https://twitter.com/eoins
- https://twitter.com/loige
#aws #tags #cloudformation
...
https://www.youtube.com/watch?v=qh0BlnGRAog
Join us as we explore the controversy surrounding serverless computing in this week's video! We'll be discussing David Heinemeier Hansson's recent blog post where he argues that serverless is a trap that only benefits cloud providers.
While we respect DHH's opinion, we'll be providing an alternative perspective by analyzing his major points and discussing the benefits of using serverless computing, including Total Cost of Ownership (TCO) and increased agility. We'll also be highlighting how serverless can help teams focus on business logic instead of infrastructure management and enable easier integration with other cloud services, making it more efficient to build and deploy applications.
Don't miss out on this informative and thought-provoking discussion!
? SPONSORS ?
AWS Bites is sponsored by fourTheorem (https://fourtheorem.com). fourTheorem is an AWS Consulting Partner offering training, cloud migration, and modern application architecture.
? Chapters:
00:00 Intro
01:06 Summary of DHH's opinion about Serverless
05:06 Honesty trailer: everyone is biased
06:48 What do we think is correct in DHH's opinion
08:18 What do we think is missing: Total Cost of Ownership (TCO) analysis
10:18 What do we think is missing: the agility of Serverless
12:25 Is there a strong vendor lock-in with serverless?
18:30 Our final opinion on Serverless
19:13 Additional resources and closing notes
In this episode, we mentioned the following resources:
- "Don't be fooled by Serverless" (Original post by DHH): https://world.hey.com/dhh/don-t-be-fooled-by-serverless-776cd730
- "Why are we leaving the cloud" (Previous post by DHH): https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47e0
- "Why AWS Lambda pricing has to change for the enterprise" (our article on AWS Lambda pricing comparison): https://fourtheorem.com/why-aws-lambda-pricing-has-to-change-for-the-enterprise/
- Our previous episode "What will serverless 2.0 look like": https://awsbites.com/59-what-will-serverless-2-0-look-like/
- Kelsey Hightower's tweet on vendor lock-in: https://twitter.com/kelseyhightower/status/856606909608194049
- Jeremy Daly's article "The cloud isn't the issue, you are using it wrong": https://www.jeremydaly.com/the-cloud-isnt-the-issue-youre-just-using-it-wrong/
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:
- https://twitter.com/eoins
- https://twitter.com/loige
#AWS #serverless #opinion
...
https://www.youtube.com/watch?v=pJMfmVtXBRs
? Celebrating 100,000 Views and Listens! ?
We are ecstatic to announce that we've reached an incredible 100,000 views and listens! ?
We couldn't have done it without you, our incredible community of listeners and viewers. Your support, engagement, and feedback have been our driving force, and we couldn't be more grateful! ?
Subscribe now and never miss another exciting episode of AWS Bite' as we continue to unravel the endless possibilities of the Amazon Web Services universe. ?? Don't forget to hit that notification bell to stay up to date with our latest content!
...
https://www.youtube.com/watch?v=TuZuW3uFCn8
In this episode of AWS Bites, Eoin and Luciano discuss some interesting strategies to take a workload to the cloud. Most of this episode is built around “6 Strategies for Migrating Applications to the Cloud” by Stephen Orban: (https://aws.amazon.com/blogs/enterprise-strategy/6-strategies-for-migrating-applications-to-the-cloud/) in which you can find the concepts of the “6 Rs for cloud migrations”: Retire or Retain, Re-purchase, Re-host, Re-platform and Re-architecture.
Throughout the episode we share our take on this approach and we try to provide our perspective and suggestions on how to apply this strategy and get some significant ROI for this project. Moving to the cloud is never a trivial thing and there are many elements to consider, especially in a medium/big organisation. This episode will help you to lay out all the elements that matter the most and come up with a solid plan for your next cloud migration.
00:00 Intro
00:40 What's your starting point?
02:07 6 Strategies for Migrating Applications to the Cloud
03:20 Retire
03:36 Retain
03:50 Re-purchase
04:22 Re-hosting
05:58 Re-platforming
09:50 Re-architecture
11:50 Guidelines & strategies for cloud migrations
12:05 Upfront planning approach
13:10 Lean/Agile approach (migrate one project first)
14:45 Measure of success for a cloud migration
19:20 Outro
In this episode we mentioned the following resources:
- 6 Strategies for Migrating Applications to the Cloud: https://aws.amazon.com/blogs/enterprise-strategy/6-strategies-for-migrating-applications-to-the-cloud/
This episode is also available on YouTube: https://www.youtube.com/AWSBites
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:
- https://twitter.com/eoins
- https://twitter.com/loige
...
https://www.youtube.com/watch?v=IDh4eQzbvyg