CloudFormation
note
CloudFormation support is available now in early access for the Infracost GitHub and GitLab apps, contact hello@infracost.io if you'd like to request access. CLI and IDE support for CloudFormation are on the roadmap for 2026 and we’ll share more as those pieces come together. AutoFix pull requests do not currently work with CloudFormation.
Overview
Infracost supports both YAML and JSON formats for CloudFormation (CFN). The following outlines support for the various CFN features:
| Feature | Support |
|---|---|
| Resources | ✅ |
| Parameters | ✅ |
| Mappings | ✅ |
| Conditions | ✅ |
| Transforms | ✅ |
| Outputs | ✅ |
| DependsOn | ✅ |
| Rules | ✅ |
| Modules | ❌ |
| Intrinsic Functions | ✅ |
| Nested stack support | ✅ |
| Language extensions | ✅ |
| Pseudo parameters | ✅ |
| Dynamic references | ❌ |
| Hooks | ❌ |
| Stack/org tags | ❌ |
Transform support
| Name | Type | Support |
|---|---|---|
| AWS::Serverless-2016-10-31 | Native | ✅ |
| AWS::Include | Native | ✅ |
| AWS::LanguageExtensions | Native | ✅ |
| AWS::CodeDeployBlueGreen | Native | ✅ |
| Count | Community | ✅ |
| Explode | Community | ✅ |
| Boto3 | Community | ✅ |
| ExecutionRoleBuilder | Community | ✅ |
| PyPlate | Community | ❌ |
| StringFunctions | Community | ✅ |
| S3Objects | Community | ✅ |
| ShortHand | Community | ✅ |
| StackMetrics | Community | ❌ |
Intrinsic support
| Name | Type | Support |
|---|---|---|
| Base64 | Native | ✅ |
| Equals | Native | ✅ |
| And | Native | ✅ |
| Or | Native | ✅ |
| Not | Native | ✅ |
| Condition | Native | ✅ |
| FindInMap | Native | ✅ |
| FindInMap (extended) | LanguageExtensions | ✅ |
| GetAtt | Native | ✅ |
| GetAZs | Native | ✅ |
| If | Native | ✅ |
| ImportValue | Native | ❌ |
| Join | Native | ✅ |
| Ref | Native | ✅ |
| Select | Native | ✅ |
| Split | Native | ✅ |
| Sub | Native | ✅ |
| Transform | Native | ✅ |
| ForEach | LanguageExtensions | ✅ |
| Length | LanguageExtensions | ✅ |
| ToJsonString | LanguageExtensions | ✅ |
Rain support
| Name | Type | Support |
|---|---|---|
| Rain:Embed | Directive | ❌ |
| Rain:Include | Directive | ❌ |
| Rain:Env | Directive | ❌ |
| Rain:S3Http | Directive | ❌ |
| Rain:S3 | Directive | ❌ |
| Fn::Select | Intrinsic | ❌ |
| Fn::InsertFile | Intrinsic | ❌ |
| Fn::Invoke | Intrinsic | ❌ |
| Modules | Entrypoint | ❌ |
| Packaging | Entrypoint | ❌ |