{"id":18973364,"url":"https://github.com/cyangle/cdk-example","last_synced_at":"2026-04-07T21:30:18.214Z","repository":{"id":119846347,"uuid":"313464903","full_name":"cyangle/cdk-example","owner":"cyangle","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-17T06:24:57.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T08:41:44.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyangle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-11-17T00:41:53.000Z","updated_at":"2020-11-17T06:24:59.000Z","dependencies_parsed_at":"2023-06-03T08:45:53.530Z","dependency_job_id":null,"html_url":"https://github.com/cyangle/cdk-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fcdk-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fcdk-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fcdk-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fcdk-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyangle","download_url":"https://codeload.github.com/cyangle/cdk-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970678,"owners_count":19727014,"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-11-08T15:11:59.068Z","updated_at":"2026-04-07T21:30:18.158Z","avatar_url":"https://github.com/cyangle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Example project to create sumologic stuff with cdk-terraform\n\nSumologic doesn't have a prebuilt npm package to use in cdk-terraform.\nBut the cdk-terraform has the ability to generate provider typescript files to use.\n\n### How to run\n\n* Install terraform \u003e= 0.13.5 and nodejs 14.x\n* Install cdktf-cli globally with command `npm install -g cdktf-cli`\n* Install npm packages in project folder with `npm install`\n* Generate ts files for terraform providers with `cdktf get`\n\n  Currently it includes aws, sumologic, datadog providers.\n\n  You can add additonal terraform providers by editing `cdktf.json`\n\n  Don't forget to restrict the provider version!\n\n  References:\n  * https://github.com/hashicorp/terraform-cdk/issues/304\n  * https://github.com/hashicorp/terraform-cdk/blob/master/docs/working-with-cdk-for-terraform/using-providers-and-modules.md\n* Generate tf config file locally with `cdktf synth`\n\n  tf config files should be under folder `cdktf.out`\n* Provide sumologic credentials via env vars:\n\n  ```bash\n  export SUMOLOGIC_ACCESSID='your-access-id'\n  export SUMOLOGIC_ACCESSKEY='your-access-key'\n  export SUMOLOGIC_ENVIRONMENT='us2'\n  ```\n* Apply tf changes with command `cdktf deploy`\n\n  This command will ask for confirmation on a generated diff and then deploy the application.\n\n* You can destroy the tf changes with command `cdktf destroy`\n\n### Limitations\n* Currently, cdktf doesn't support multi-stack.\n\n  Issue is tracked [here](https://github.com/hashicorp/terraform-cdk/issues/35).\n\n  This [link](https://github.com/hashicorp/terraform-cdk/issues/399) also mentions workspaces, not sure how it could help with multi-stack, need to investigate it further.\n\n* The CDK for Terraform only supports generation of publicly available modules hosted in registry.terraform.io. Suport for other module sources is in progress.\n\n  Issue is tracked [here](https://github.com/hashicorp/terraform-cdk/issues/16).\n* HCL to CDKTF Tool is also in progress and tracked [here](https://github.com/hashicorp/terraform-cdk/issues/232).\n\n  This enables converting an existing HCL based project to Typescript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyangle%2Fcdk-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyangle%2Fcdk-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyangle%2Fcdk-example/lists"}