Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CloudFormation #190

Open
delissonjunio opened this issue Oct 21, 2020 · 8 comments
Open

Add support for CloudFormation #190

delissonjunio opened this issue Oct 21, 2020 · 8 comments
Labels
new iac New Infrastructure-as-Code tool/language to be added

Comments

@delissonjunio
Copy link

delissonjunio commented Oct 21, 2020

Hi, is there any chance we could work to support bare CloudFormation templates? At my company we don't really use TF but I'd be interested in contributing & adding support to CF if it fits within the project's scope

Note for community

Please 👍 if you'd like to upvote this or receive updates.

@alikhajeh1 alikhajeh1 added the enhancement New feature or request label Oct 22, 2020
@alikhajeh1 alikhajeh1 changed the title Bare CloudFormation templates support Support CloudFormation templates as Infracost input Jan 5, 2021
@joetheone
Copy link

Yes please! 🙌

@PatMyron
Copy link
Contributor

PatMyron commented Mar 22, 2021

CloudFormation has a limited coverage API:
aws-cloudformation/cloudformation-coverage-roadmap#217
Reach out if anyone's planning on this. Can point towards CloudFormation template recognition logic, unresolved CloudFormation template syntax that'll likely need to be ignored, diverse test templates, and other thoughts like hooks integration

@PatMyron
Copy link
Contributor

PatMyron commented Mar 15, 2022

Easiest starting point is automatically translating free resource types:

var FreeResources = []string{

Stripping delimiters (_ or ::) and comparing case insensitively automatically maps ~400 out of ~900 AWS resource types:
https://github.com/PatMyron/terraformation/blob/main/map/map.py
https://github.com/PatMyron/terraformation/blob/create-pull-request/patch/map/resources.txt


which currently automatically maps 100 of 280 free resource types identified by infracost


https://github.com/hashicorp/terraform-provider-awscc might be another good starting point

@tim775
Copy link
Member

tim775 commented Mar 30, 2022

Note: When we add CloudFormation IaC support, we should generate estimates for the template_body field of aws_cloudformation_stack (see #1507)

@aliscott aliscott changed the title Support CloudFormation templates as Infracost input Add support for CloudFormation Apr 24, 2023
@aliscott aliscott added new iac New Infrastructure-as-Code tool/language to be added and removed enhancement New feature or request labels Apr 24, 2023
@DavidHaasz
Copy link

Do we have an update on the status of this. My team currently has a mix of Terraform and Cloudformation IaC and we are looking to do something around comparing estimated cost of infrastructure vs real cost of infrastructure and we would like to leverage Infracost to do that but the current lack of cloudformation support is a blocker

@hugorut
Copy link
Contributor

hugorut commented Nov 2, 2023

@DavidHaasz we're still focused on making the experience for Terraform the best it can possibly be, e.g. guardrails, tagging policies and finops policies. Once we're happy with the features for Terraform, we'd like to go broad and provide the same capabilities to other IaC tools. Sorry, we don't have an ETA yet for Cloudformation support.

@jswietek
Copy link

@hugorut Did anything change in that matter? Do you have a roadmap/ETA of features that need to be in place for Terraform before you switch focus to other IaC tools? Do you already thought about which other IaC tool si going to be first after Terraform?

@hugorut
Copy link
Contributor

hugorut commented Mar 14, 2024

@jswietek it hasn't changed as of recent, we're still focused on Terraform. When we have a roadmap/ETA we will post here for visibility. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new iac New Infrastructure-as-Code tool/language to be added
Projects
None yet
Development

No branches or pull requests

9 participants