Are you writing Python or Node.js code to do Automation or Pull Reports or Inventory in AWS?
💯 If yes, this post is for you and probably you may end up like this read and learn something new today.
🚨 Spoiler Alert 😅:- Am going to talk about AWS Step Functions.
⭐ Yes, with recent advances rolled out in step functions, we can do lot more than, what we thought it does and what we are doing with it.
🧐 Previously we would have used step functions for cases like :-
✍️Lambda can't run beyond 15 mins, so if we want more wait time for some task, we used to call step functions and wait there and re-trigger lambda to process same event.
✍️To call multiple lambda in sequence or parallel, we would have used it.
🖇️Basically what we do is, always we keep our core logic in lambda and just used step functions for so called "orchestration" to call lambda in different patterns.
If you agree with me, then below are some real time use cases, you can try and unleash the real power of step functions.
🏋️You can stop writing code, if your use case or tasks are like this 👇
🏌️♂️ Scan across all tagging supported AWS resources and see if your cost specific tags are applied or not. If not applied, tag it.
🏌️♂️Generate an inventory data of IAM roles in your AWS environment without being used and does not have any activity.
🏌️♂️ Identify all the S3 buckets in your AWS environment which does not have versioning enabled and enable it.
🏌️♂️ Identify the cloudformation stacks which are stale in the AWS environment that need to be removed or have them removed automatically and notify the admin teams of this.
🏌️♂️ Examine each IAM role in the AWS environment to see if the admin suggest policy is defined. If not, create one, apply it and make sure the necessary contacts are notified.
☝️ You should be able to accomplish the above mentioned tasks using step functions alone without requiring any code written in Python or Node.js based lambda.
☝️ Above Illustrated things are just few examples of step function, you can do beyond those and unlock many things via step functions.
🎟️ Start using it and see the magic ✨, infinity is your limit.
🚧 Note :- I am not hater of AWS Lambda, don't get angry on me, I myself written many lambda's 😉 am just telling, now step functions can do more, than you think 💪.
Take care, bye!
#AWS #StepFunctions #Lambda
Comments