{"id":13626626,"url":"https://github.com/coderbyheart/smartvan-aws","last_synced_at":"2025-04-16T14:34:10.004Z","repository":{"id":49185769,"uuid":"315460962","full_name":"coderbyheart/smartvan-aws","owner":"coderbyheart","description":"AWS resources for SmartVan","archived":true,"fork":false,"pushed_at":"2021-06-26T10:06:51.000Z","size":2515,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"saga","last_synced_at":"2024-11-08T16:44:52.364Z","etag":null,"topics":["smartvan"],"latest_commit_sha":null,"homepage":"","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/coderbyheart.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":"2020-11-23T22:57:44.000Z","updated_at":"2023-01-28T08:06:19.000Z","dependencies_parsed_at":"2022-09-14T15:22:30.885Z","dependency_job_id":null,"html_url":"https://github.com/coderbyheart/smartvan-aws","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/coderbyheart%2Fsmartvan-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Fsmartvan-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Fsmartvan-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2Fsmartvan-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderbyheart","download_url":"https://codeload.github.com/coderbyheart/smartvan-aws/tar.gz/refs/heads/saga","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250843,"owners_count":21237961,"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":["smartvan"],"created_at":"2024-08-01T21:02:25.194Z","updated_at":"2025-04-16T14:34:09.691Z","avatar_url":"https://github.com/coderbyheart.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# SmartVan\n\n![Test](https://github.com/coderbyheart/smartvan-aws/workflows/Test/badge.svg)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)\n[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)\n\nAWS resources for\n[SmartVan](https://github.com/coderbyheart?tab=repositories\u0026q=smartvan\u0026type=\u0026language=).\n\n## Deploy to AWS\n\nMake these environment variable available:\n\n\u003e ℹ️ Linux users can use [direnv](https://direnv.net/) to simplify the process.\n\n    export AWS_REGION=\u003c...\u003e\n    export AWS_DEFAULT_REGION=\u003c...\u003e\n    export AWS_ACCESS_KEY_ID=\u003cAccess Key ID of the service account\u003e\n    export AWS_SECRET_ACCESS_KEY=\u003cSecret Access Key of the service account\u003e\n\nInstall dependencies\n\n    npm ci\n\nCompile the source\n\n    npx tsc\n\nSet the ID of the stack\n\n    export STACK_NAME=\"${STACK_NAME:-smartvan}\"\n\nPrepare the account for CDK resources:\n\n    npx cdk -a 'node dist/cloudformation-sourcecode.js' deploy\n\nDeploy the server stack to an AWS account\n\n    npx cdk deploy ${STACK_NAME:-smartvan}\n\n## Create a Thing for the SmartVan\n\nCreate a Thing and assign it to the `smartvan` group.\n\n    mkdir certificates\n    aws iot create-thing --thing-name smartvan\n    aws iot add-thing-to-thing-group  --thing-group-name smartvan --thing-name smartvan\n    aws iot create-keys-and-certificate --set-as-active \u003e certificates/smartvan.json\n    aws iot attach-thing-principal --thing-name smartvan --principal `cat certificates/smartvan.json | jq -r \".certificateArn\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Fsmartvan-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderbyheart%2Fsmartvan-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Fsmartvan-aws/lists"}