{"id":17532841,"url":"https://github.com/cdklabs/cdk-from-cfn","last_synced_at":"2025-12-30T00:03:24.253Z","repository":{"id":39971268,"uuid":"410353414","full_name":"cdklabs/cdk-from-cfn","owner":"cdklabs","description":"A cloudformation json -\u003e cdk typescript transpiler.","archived":false,"fork":false,"pushed_at":"2024-12-06T14:17:04.000Z","size":20704,"stargazers_count":59,"open_issues_count":34,"forks_count":18,"subscribers_count":15,"default_branch":"main","last_synced_at":"2024-12-06T19:32:00.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdklabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-25T18:36:45.000Z","updated_at":"2024-12-04T11:21:06.000Z","dependencies_parsed_at":"2024-03-11T19:46:26.839Z","dependency_job_id":"6a307821-73f3-4974-870a-37fcf3d80ab8","html_url":"https://github.com/cdklabs/cdk-from-cfn","commit_stats":null,"previous_names":["cdklabs/cdk-from-cfn","iph/noctilucent"],"tags_count":139,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-from-cfn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-from-cfn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-from-cfn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdklabs%2Fcdk-from-cfn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdklabs","download_url":"https://codeload.github.com/cdklabs/cdk-from-cfn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242211251,"owners_count":20090237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-20T18:05:18.278Z","updated_at":"2025-12-30T00:03:24.248Z","avatar_url":"https://github.com/cdklabs.png","language":"Rust","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# cdk-from-cfn\n\n`cdk-from-cfn` is a command-line tool that converts AWS CloudFormation templates into AWS CDK code. It supports multiple programming languages including TypeScript, Python, Java, Go, and C#.\n\n## Installation\n\n```console\ncargo install cdk-from-cfn\n```\n\n## Usage\n\n```console\ncdk-from-cfn [INPUT] [OUTPUT] --language \u003cLANGUAGE\u003e --stack-name \u003cSTACK_NAME\u003e\n```\n\n- `INPUT` is the input file path (STDIN by default).\n- `OUTPUT` is the output file path; if not specified, output will be printed on your command line (STDOUT by default).\n\n## Node.js Module Usage\n\ncdk-from-cfn leverages WebAssembly (WASM) bindings to provide a cross-platform [npm](https://www.npmjs.com/package/cdk-from-cfn) module, which exposes apis to be used in Node.js projects. Simply take a dependency on `cdk-from-cfn` in your package.json and utilize it as you would a normal module. i.e.\n\n```typescript\nimport * as cdk_from_cfn from 'cdk-from-cfn';\n\n// get supported languages\ncdk_from_cfn.supported_languages();\n\n// transmute cfn template into cdk app\ncdk_from_cfn.transmute(template, language, stackName)\n```\n\n## Language and Feature support\n\n| Name         | Enabled by default | Description                           |\n| ------------ | :----------------: | ------------------------------------- |\n| `typescript` | :heavy_check_mark: | Enables support for TypeScript output |\n| `golang`     | :heavy_check_mark: | Enables support for Go output         |\n| `java`       | :heavy_check_mark: | Enables support for Java output       |\n| `Python`     | :heavy_check_mark: | Enables support for Python output     |\n| `csharp`     | :heavy_check_mark: | Enables support for C# output         |\n\nYou can enable experimental languages (not enabled by default) by enabling the relevant feature:\n\n```console\n$ cargo build --release --features=\u003cfeature-name\u003e\nFinished release [optimized] target(s) in 0.17s\n```\n\nIf you want to disable on-by-default languages, you can pass `--no-default-features`:\n\n```console\n$ cargo build --release --no-default-features --features=golang\nFinished release [optimized] target(s) in 0.17s\n```\n\n### Implemented\n\n- [x] Fn::FindInMap\n- [x] Fn::Join\n- [x] Fn::Sub\n- [x] Ref\n- [x] Fn::And\n- [x] Fn::Equals\n- [x] Fn::If\n- [x] Fn::Not\n- [x] Fn::Or\n- [x] Fn::GetAtt\n- [x] Fn::Base64 support\n- [x] Fn::ImportValue support\n- [x] Fn::Select support\n- [x] Resource ordering based on dependencies\n- [x] Conditions are emitted in ts but not attached to resource conditions\n- [x] Metadata emission for updates to asgs / lambda functions.\n- [x] Emission of outputs / exports\n- [x] Fn::GetAZs support\n- [x] Adding depends-on, and ordering based on it too.\n- [x] Deletion policy\n- [x] Fn::Cidr support\n\n### Remaining\n\nThere are known unsupported features. Working on them in priority order:\n\n- [ ] Create policy\n- [ ] ssm metadata references\n- [ ] secretsmanager references\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdklabs%2Fcdk-from-cfn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdklabs%2Fcdk-from-cfn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdklabs%2Fcdk-from-cfn/lists"}