Dynamic Looping Comes to AWS SAM
AWS SAM CLI has introduced support for AWS CloudFormation Language Extensions, enhancing the development of serverless applications. The new feature, Fn::ForEach, allows for dynamic looping in YAML templates, reducing template duplication. Other extensions include functions for length, JSON conversion, and conditional policies, streamlining the local development workflow.
- ▪AWS SAM CLI now supports CloudFormation Language Extensions.
- ▪The Fn::ForEach function enables dynamic looping in YAML templates.
- ▪This update helps reduce template duplication for serverless applications.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 2745619) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Eric D Johnson for AWS Posted on May 18 • Originally published at builder.aws.com Dynamic Looping Comes to AWS SAM #aws #serverless #sam #cloudformation AWS SAM CLI, the command-line tool for building and deploying serverless applications, now supports AWS CloudFormation Language Extensions. The one I am most excited about is Fn::ForEach, which brings dynamic looping to your YAML templates, but it's close.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).