{"id":35507541,"url":"https://github.com/cloud-copilot/iam-convert","last_synced_at":"2026-05-10T16:07:51.987Z","repository":{"id":274234810,"uuid":"922323049","full_name":"cloud-copilot/iam-convert","owner":"cloud-copilot","description":"Convert JSON IAM Policies to other formats","archived":false,"fork":false,"pushed_at":"2026-02-14T18:01:11.000Z","size":855,"stargazers_count":25,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-15T01:47:04.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://iam.cloudcopilot.io/tools/iam-convert","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-copilot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-25T22:22:44.000Z","updated_at":"2026-02-14T17:57:52.000Z","dependencies_parsed_at":"2025-03-19T21:35:34.726Z","dependency_job_id":"6a9be4de-a26d-4a14-90c4-1df77e30548f","html_url":"https://github.com/cloud-copilot/iam-convert","commit_stats":null,"previous_names":["cloud-copilot/iam-convert"],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/cloud-copilot/iam-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-copilot%2Fiam-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-copilot%2Fiam-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-copilot%2Fiam-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-copilot%2Fiam-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-copilot","download_url":"https://codeload.github.com/cloud-copilot/iam-convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-copilot%2Fiam-convert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29718466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-03T20:14:14.625Z","updated_at":"2026-02-22T16:35:58.646Z","avatar_url":"https://github.com/cloud-copilot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iam-convert: Convert JSON Policy Documents to Infrastructure as Code\n\n[![NPM Version](https://img.shields.io/npm/v/@cloud-copilot/iam-convert.svg?logo=nodedotjs)](https://www.npmjs.com/package/@cloud-copilot/iam-convert) [![License: AGPL v3](https://img.shields.io/github/license/cloud-copilot/iam-convert)](LICENSE.txt) [![GuardDog](https://github.com/cloud-copilot/iam-convert/actions/workflows/guarddog.yml/badge.svg)](https://github.com/cloud-copilot/iam-convert/actions/workflows/guarddog.yml) [![Known Vulnerabilities](https://snyk.io/test/github/cloud-copilot/iam-convert/badge.svg?targetFile=package.json\u0026style=flat-square)](https://snyk.io/test/github/cloud-copilot/iam-convert?targetFile=package.json)\n\nCLI and Node Library to convert JSON IAM Policy Documents to other formats for Infrastructure as Code.\n\n## Available Formats\n\n- Terraform (tf) - an [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) data source\n- CloudFormation (cf) - a [PolicyDocument](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html) resource in yaml\n- Typescript CDK (cdk-ts) - an [iam.PolicyDocument](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.PolicyDocument.html) from AWS CDK V2 aws-cdk-lib/aws-iam\n- Python CDK (cdk-py) - a [PolicyDocument](https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_iam/PolicyDocument.html) using AWS CDK V2 aws_cdk.aws_iam\n\n## Use in Browser\n\n[https://iam.cloudcopilot.io/tools/iam-convert](https://iam.cloudcopilot.io/tools/iam-convert)\n\n## Installation\n\n```bash\n# Install the CLI\nnpm install -g @cloud-copilot/iam-convert\n\n## Install the Node Library\nnpm install @cloud-copilot/iam-convert\n```\n\n## CLI Usage\n\n```bash\n# Convert a JSON policy document to terraform and send to stdout\niam-convert --file path/to/policy.json\n\n# Download a policy and convert it to terraform\ncurl \"https://government-secrets.s3.amazonaws.com/secret-policy.json\" | iam-convert \u003e secret-policy.tf\n\n# View all options\niam-convert --help\n```\n\n## Typescript/Javascript Usage\n\n```typescript\nimport { convert } from '@cloud-copilot/iam-convert'\nimport { loadPolicy } from '@cloud-copilot/iam-policy'\n\nconst policy = {\n  Version: '2012-10-17',\n  Statement: [\n    {\n      Effect: 'Allow',\n      Action: 's3:GetObject',\n      Resource: 'arn:aws:s3:::my-bucket/*'\n    }\n  ]\n}\n\nconst terraformDataSource = convert(policy, 'tf')\n\nconsole.log(terraformDataSource)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-copilot%2Fiam-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-copilot%2Fiam-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-copilot%2Fiam-convert/lists"}