Posted On: Oct 20, 2022
AWS CloudFormation has expanded the availability of language Transform called ‘AWS::LanguageExtensions' to the AWS GovCloud (US) Regions. When declared in a template, the transform enables extensions to the template language in AWS CloudFormation.
With this launch, you can use intrinsic functions for length (Fn::Length) and JSON string conversion (Fn::ToJsonString), and support for intrinsic functions and pseudo-parameter references in update and deletion policies in AWS GovCloud (US) Regions. For example, you can use the Fn::Length intrinsic function to return the number of elements within an array, or an intrinsic function that returns an array. You can use the Fn::ToJsonString intrinsic function to convert an object or array to its corresponding JSON string. Finally, you can use intrinsic functions to define the DeletionPolicy and UpdateReplacePolicy resource attributes.
The language extensions transform is generally available in the following AWS Regions: US East (Ohio, N. Virginia), US West (Oregon, N. California), Canada (Central), Europe (Ireland, Frankfurt, London, Stockholm, Paris, Milan), Asia Pacific (Hong Kong, Jakarta, Mumbai, Osaka, Seoul, Singapore, Sydney, Tokyo), South America (São Paulo), Middle East (Bahrain), Africa (Cape Town), AWS GovCloud (US) Regions, the Amazon Web Services China (Beijing) Region, operated by Sinnet, and the Amazon Web Services (Ningxia) Region, operated by NWCD.
To learn more, refer to the CloudFormation documentation. To contribute to the language extension open discussions, join the Language Discussion Github repository. This repository allows customers to request language features, and leave feedback on Request for Comments (RFC) proposals for new language features.