{"id":18913759,"url":"https://github.com/ethers-io/sync-s3-action","last_synced_at":"2025-04-15T08:30:55.494Z","repository":{"id":66080770,"uuid":"555088480","full_name":"ethers-io/sync-s3-action","owner":"ethers-io","description":"GitHub Action to sync an S3 bucket with a folder.","archived":false,"fork":false,"pushed_at":"2022-10-21T00:48:34.000Z","size":424,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T04:34:19.937Z","etag":null,"topics":["actions","aws","github-actions"],"latest_commit_sha":null,"homepage":null,"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/ethers-io.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}},"created_at":"2022-10-20T23:43:30.000Z","updated_at":"2025-04-04T20:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3bc858e-79cb-47a7-bd17-a8bf8e3cc2d7","html_url":"https://github.com/ethers-io/sync-s3-action","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"db5f9e09eeea8b01ab85f0ea6fc18e2b3c6bd5c5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fsync-s3-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fsync-s3-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fsync-s3-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fsync-s3-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethers-io","download_url":"https://codeload.github.com/ethers-io/sync-s3-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248651019,"owners_count":21139728,"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":["actions","aws","github-actions"],"created_at":"2024-11-08T10:08:52.195Z","updated_at":"2025-04-15T08:30:55.455Z","avatar_url":"https://github.com/ethers-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sync S3\n=======\n\nThis action syncs a folder to an S3 Bucket, uploading only files which have\nchanged and optionally invalidates any Cloudfront edge caches.\n\nConfiguration\n-------------\n\n**workflow.yml**\n\n```\nname: Sync to S3\n\non:\n  push:\n    bracnhes:\n      - master\n\njobs:\n\n  sync-website:\n    name: Sync Website to S3\n\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Use Node.js 16.x\n        uses: actions/setup-node@v1\n        with:\n          node-version: 16.x\n\n      - name: Checkout repository\n        uses: actions/checkout@v2\n\n      - name: Sync to S3\n        uses: ethers-io/sync-s3-action\n        with:\n          aws_access_key_id: ${{ secrets.AWS_KEY_ID }}\n          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}\n          aws_s3_bucket: ${{ secrets.AWS_BUCKET }}\n          source_folder: 'foo/bar/'\n          source_prefix: 'foo/'\n          destination_prefix: 'another-foo/'\n          aws_cloudfront_id: ZQWX4KGLS45\n```\n\n**IAM Permissions**\n\nYou must substitute your own ARN for the CloudFront and S3 resources.\n\n```json\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"s3:PutObject\",\n                \"s3:GetObjectAcl\",\n                \"s3:GetObject\",\n                \"s3:PutObjectVersionAcl\",\n                \"s3:ListBucket\",\n                \"cloudfront:CreateInvalidation\",\n                \"s3:PutObjectAcl\"\n            ],\n            \"Resource\": [\n                \"arn:aws:cloudfront::USER_ID:distribution/DISTRIBUTION_ID\",\n                \"arn:aws:s3:::your.bucket.here\",\n                \"arn:aws:s3:::your.bucket.here/*\"\n            ]\n        }\n    ]\n}\n```\n\nLicense\n-------\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethers-io%2Fsync-s3-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethers-io%2Fsync-s3-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethers-io%2Fsync-s3-action/lists"}