Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introduction to AWS Step Functions
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Koya Takei
August 26, 2024
62
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction to AWS Step Functions
Koya Takei
August 26, 2024
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Ruling the World: When Life Gets Gamed
codingconduct
0
370
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
250
Music & Morning Musume
bryan
48
7.4k
How Software Deployment tools have changed in the past 20 years
geshan
2
34k
Navigating Weather and Climate Data
rabernat
0
540
Bash Introduction
62gerente
615
220k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
340
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Transcript
Introduction to AWS Step Functions Koya Takei
About Me Name: Koya Takei Role: Software Engineer (3+ years)
Experience: LIFULL Co., Ltd. (Proptech) -> M3, inc. (medical tech) Keywords: Operation improvement, Cost reduction
Overview of Step Functions
What is Step Functions? - Visual workflow configuration service -
Integrate and orchestrate different AWS services - AWS Lambda - ECS - SNS - Built-in functions - iteration - parallel execution - error handling
Building workflow rapidly Defined by Amazon States Language (JSON) {
"Function1": { "FunctionName": "arn:aws:lambda:...:function1", "Next": "Function2" }, "Function2": { "FunctionName": "arn:aws:lambda:...:function2", "Next": "Function3" }, "Function3": { "FunctionName": "arn:aws:lambda:...:function3", "End": true } }
Dashboard Workflow dashboard will be created automatically Perform operations -
Monitor progress - Jump to logs - Interrupt - Redrive
Details of Step Functions
Core Concepts - state machine - state entire workflow, which
is a series of event-driven steps each step in a workflow combine states to build a state machine - state machine state machine state
State Types Executes a specific task by calling an AWS
service - Task State - Parallel State - Choice State Runs multiple branches of states simultaneously Branches workflow based on conditions
Task State { "ECS Execution": { "Type": "Task", "Resource": "arn:aws:states:::ecs:runTask",
"Parameters": { "TaskDefinition": "TaskDefinitionArn", "Overrides": { "Command": ["node", "index.js"] } } } } Running ECS task { "Publish to SNS": { "Type": "Task", "Resource": "arn:aws:states:::sns:publish", "Parameters": { "TopicArn": "TopicArn", "Message": "my message", } } } Sending message by SNS
Parallel State Running multiple states in parallel { "Type": "Parallel",
"Branches": [ { "LookUpAddress": { "Type": "Task", "FunctionName": "LambdaArn" } }, { "LookUpName": { "Type": "Task", "FunctionName": "LambdaArn" } } ], }
Choice State { "Choice": { "Type": "Choice", "Choices": [{ "Variable":
"$.price", "NumericGreaterThan": 10000, "Next": "SendMail" }], "Default": "SendItem" }, ... } Branching processes according to the input
Other State Types - Map State - Pass State -
Wait State - Success State - Fail State These can be combined to create complex workflows
Thank you very much! Let's use Step Functions! Check out
my blog post (Japanese) link https://www.m3tech.blog/entry/2024/03/26/140000 or searching “エムスリー バッチ改善”
Wait State Pause and resume execution { "WaitAnHour": { "Type":
"Wait", "Seconds": 3600, "Next": "Function" }, "Function": { "Type": "Task", "FunctionName": "LambdaArn" } }
State Types Executes a specific task by calling an AWS
service Task State Parallel State Choice State Wait State Runs multiple branches of states simultaneously Branches workflow based on conditions Pauses the workflow temporarily