{"id":22982343,"url":"https://github.com/niradler/cfexport","last_synced_at":"2025-04-02T09:45:55.492Z","repository":{"id":57196325,"uuid":"347432934","full_name":"niradler/cfexport","owner":"niradler","description":"create configuration files from aws cloud formation exports.","archived":false,"fork":false,"pushed_at":"2021-03-13T22:25:59.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T08:42:50.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/niradler.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}},"created_at":"2021-03-13T17:21:06.000Z","updated_at":"2021-03-13T22:26:01.000Z","dependencies_parsed_at":"2022-09-16T12:22:32.303Z","dependency_job_id":null,"html_url":"https://github.com/niradler/cfexport","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/niradler%2Fcfexport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fcfexport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fcfexport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fcfexport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niradler","download_url":"https://codeload.github.com/niradler/cfexport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246794103,"owners_count":20834931,"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-12-15T02:17:58.204Z","updated_at":"2025-04-02T09:45:55.466Z","avatar_url":"https://github.com/niradler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CFExport\n\nThe idea came from the reason to create an .env file for client project, the variables are aws cloud formation exports.\n\n## Use case\n\nfor example you just created cloudformation stack for the backend of your application, and you exported DEV-APIGATEWAY-URL.\n\nwith this package you can now create .env file in your client application and import this variable before build.\n\n```.env\n//.env.template\nREACT_APP_APPLICATION_URL=DEV-APIGATEWAY-URL // you can use --prefix DEV- and then just put APIGATEWAY-URL\nREACT_APP_IGNORE_PARAM=!dont-change // value starting with ! will be ignored.\n```\n\n```json\n//package.json\n\"pre-build\":\"cfexport compile -v --file \\\"./.env.template\\\" --region us-east-1 --output \\\"./.env\\\" --format \\\".env\\\"\"\n```\n\n## Usage\n\n```sh\nnpm i -g cfexport\n```\n\n```sh\ncfexport compile -v --file \"./.env.template.json\" --region us-east-1 --output \"./.env.json\" --format \"json\"\ncfexport compile -v --file \"./.env.template\" --region us-east-1 --output \"./.env\" --format \".env\"\n```\n\n### Constraints\n\nto make the call to aws to get the exports you need to have aws credential configure (by env or file, see aws sdk docs for more info)\nmake sure you have the access right to do: cloudformation:ListExports on Resource *\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fcfexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniradler%2Fcfexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fcfexport/lists"}