Maintained with ☕️ by
IcePanel logo

AWS CloudFormation Command Line Interface (CFN-CLI) now supports TypeScript

Share

Services

[AWS CloudFormation](/cloudformation/) announces the general availability (GA) of TypeScript support for the AWS CloudFormation Command Line Interface ([CFN-CLI](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html)), which enables you to create AWS and third-party resource types using the TypeScript programming language. The CFN-CLI [TypeScript plugin](https://github.com/aws-cloudformation/cloudformation-cli-typescript-plugin/) is a GitHub open source project that the community created in 2019 in an early preview mode. With this release, you can now use the plugin for your production needs. AWS CloudFormation is an infrastructure-as-code (IaC) tool that enables you to model, provision, and manage your cloud application and infrastructure resources in a safe, predictable, and repeatable way. Examples of resource types include AWS::EC2::Instance, AWS::S3::Bucket, Datadog::Monitors::Monitor, and more. If you want to provision AWS and third-party resources other than the ones already supported with CloudFormation, you can use the CFN-CLI to create such resource types and register them for use in CloudFormation. The CFN-CLI previously supported three programming languages: Java, Go, and Python to create such resource types. With this release, you get support for a fourth language: TypeScript The AWS CloudFormation team welcomes feedback and contributions to this open source project. To get started, install the cfn-cli-typescript-plugin following the instructions in the [CFN-CLI GitHub repository](https://github.com/aws-cloudformation/cloudformation-cli) or follow this [blog](https://aws.amazon.com/blogs/mt/introducing-typescript-support-for-building-aws-cloudformation-resource-types/) that provides a detailed walkthrough on creating resource types with the CFN-CLI TypeScript plugin. In addition, you can check sample resource types created with the CFN-CLI TypeScript plugin [here](https://github.com/org-formation/aws-resource-providers).