{"id":22191918,"url":"https://github.com/klich3/s3-cloudfornt","last_synced_at":"2026-05-02T09:34:14.728Z","repository":{"id":151439466,"uuid":"448889670","full_name":"klich3/s3-cloudfornt","owner":"klich3","description":"If you have your static websites allocated on S3 Buscket / CloadFront, and needs autoupload / replace files on your bucket? This script is for add on your NPM project for upload files deleting all oldest and creating distribution invalidation for create new cache.","archived":false,"fork":false,"pushed_at":"2024-11-27T00:02:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T01:17:16.970Z","etag":null,"topics":["aws","cloudfront","cloudfront-distribution","cloudfront-invalidation","s3","s3-bucket"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/klich3.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":"2022-01-17T12:43:16.000Z","updated_at":"2024-11-27T00:02:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c04634c-2410-4c07-b993-58b66245600f","html_url":"https://github.com/klich3/s3-cloudfornt","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/klich3%2Fs3-cloudfornt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Fs3-cloudfornt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Fs3-cloudfornt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klich3%2Fs3-cloudfornt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klich3","download_url":"https://codeload.github.com/klich3/s3-cloudfornt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245351762,"owners_count":20601090,"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":["aws","cloudfront","cloudfront-distribution","cloudfront-invalidation","s3","s3-bucket"],"created_at":"2024-12-02T12:18:22.608Z","updated_at":"2026-05-02T09:34:14.689Z","avatar_url":"https://github.com/klich3.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Script for deploy your static site to S3 and refresh CloudFront Distribution\n\nIt is a script that allows you to upload / deploy a static website deploy with a command. For this you need to have the Amazon CLI tool installed. You have to get it on your local machine, in package.json you put the profile name, and the target Backit. What it does is to upload the content and update cache in CloudFront.\n\n## Instalation\n\n***Dependences: Is nedded to do:***\n* ***Mac***: `brew install jq`\n* ***Linux***: `apt i jq` or `yaml install jq`\n\nAlso needs:\n* ***AWS Cli*** See this documentatio: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\n* ***Profile*** See this documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html\n\n```shell\nchmod +x ./deploy.sh\n```\n\n### Usage\n\n```shell\n./deploy.sh \u003cprofile_name\u003e \u003cdomain_name\u003e \u003cfolder_to_upload\u003e \u003cregion\u003e\n```\n\nIn your `package.json` file\n\n```json\n...\n\"scripts\": {\n    \"deploy-dev\": \"scripts/deploy.sh profile-name domain ./dist\",\n    ...\n}\n```\n\n```shell\nnpm run deploy-dev\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklich3%2Fs3-cloudfornt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklich3%2Fs3-cloudfornt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklich3%2Fs3-cloudfornt/lists"}