Skip to main content

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:

FeatureSupport
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

NameTypeSupport
AWS::Serverless-2016-10-31Native
AWS::IncludeNative
AWS::LanguageExtensionsNative
AWS::CodeDeployBlueGreenNative
CountCommunity
ExplodeCommunity
Boto3Community
ExecutionRoleBuilderCommunity
PyPlateCommunity
StringFunctionsCommunity
S3ObjectsCommunity
ShortHandCommunity
StackMetricsCommunity

Intrinsic support

NameTypeSupport
Base64Native
EqualsNative
AndNative
OrNative
NotNative
ConditionNative
FindInMapNative
FindInMap (extended)LanguageExtensions
GetAttNative
GetAZsNative
IfNative
ImportValueNative
JoinNative
RefNative
SelectNative
SplitNative
SubNative
TransformNative
ForEachLanguageExtensions
LengthLanguageExtensions
ToJsonStringLanguageExtensions

Rain support

NameTypeSupport
Rain:EmbedDirective
Rain:IncludeDirective
Rain:EnvDirective
Rain:S3HttpDirective
Rain:S3Directive
Fn::SelectIntrinsic
Fn::InsertFileIntrinsic
Fn::InvokeIntrinsic
ModulesEntrypoint
PackagingEntrypoint