cf2tf icon indicating copy to clipboard operation
cf2tf copied to clipboard

Convert Cloudformation templates to Terraform.

Results 28 cf2tf issues
Sort by recently updated
recently updated
newest added

Cloudformation allows you to define custom resources that get passed to a lambda when Cloudformation creates your stack. This is a neat feature but there is no Terraform equivalent as...

This is an excellent python app for translating Cloudformation Stack to Terraform scripts Some modules could however use an improvement while translating to terraform scripts: - aws_autoscaling_notification - aws_autoscaling_groups -...

enhancement
good first issue
help wanted

cf2tf is not Not Converting a CloudFormation `AWS::Glue::Table` to `aws_glue_catalog_table`. It creates it as an `aws_route_table`. **Example CF Definition:** ``` VpcFlowLogsAthenafl025c2085d26ae2213daily2024070920240709: Type: AWS::Glue::Table DependsOn: - VpcFlowLogsAthenaDatabase Properties: CatalogId: !Ref AWS::AccountId...

``` root@43157a173e4a:/workspaces/AWS_RAG_Chatbot# cf2tf formation.yml >> main.auto.tf // Converting formation.yml to Terraform! Traceback (most recent call last): File "/usr/local/bin/cf2tf", line 8, in sys.exit(cli()) ^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return...

I just tried the tool first time and it worked well, but there are a few places in the output where the particular input yaml text was pasted and commented...

**Issues:** ```bash $ cf2tf cloudformation-template.yaml -o tf // Converting cloudformation-template.yaml to Terraform! // Existing Terraform src code found at /var/folders/jj/2yn5ym4j2wj892zt7r_9z6q00000gn/T/terraform_src. Traceback (most recent call last): File "/Users/dev/.pyenv/versions/3.12.4/bin/cf2tf", line 8, in...

### The Issue When running cf2tf on a yaml file that includes RootCACertificate as a resource, the validity block created has the wrong syntax around the validity argument: ``` resource...

For example: * `AWS::ElasticLoadBalancingV2::LoadBalancer` was converted to `aws_elasticsearch_domain_policy` instead of [`aws_lb`](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb) * `AWS::ElasticLoadBalancingV2::TargetGroup` was converted to `aws_elasticache_parameter_group` instead of [`lb_target_group`](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group)