Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
sync-cloud-storage
Advanced tools
[![NPM](https://img.shields.io/npm/v/sync-cloud-storage)](https://www.npmjs.com/package/sync-cloud-storage) [![Pipeline Status](https://github.com/msudgh/sync-cloud-storage/actions/workflows/ci.yml/badge.svg?branch=main)](./.github/workflows/ci.yml) [![Co
sync-cloud-storage is a Node.js package designed to seamlessly synchronize files and directories between local environments and cloud storage providers like AWS S3. It leverages AWS SAM (Serverless) and AWS Cloud Development Kit (CDK) for powerful, modern, and flexible integrations.
glob
to include or excludePrefix
, Access Control List (ACL)
, Tags
, Metadata
aws-sdk@3.x
npm i sync-cloud-storage
yarn add sync-cloud-storage
pnpm add sync-cloud-storage
ni sync-cloud-storage
The integration is powered by Serverless hooks and In below, the default configured hooks are listed:
This setup uses before:deploy:deploy
hook to sync storages before deploying the stack:
plugins:
- sync-cloud-storage
custom:
syncCloudStorage:
- name: my-bucket
patterns:
- assets/*
actions:
- upload
- delete
prefix: assets
acl: public-read
metadata:
foo: bar
bar: foo
tags:
foo: bar
bar: foo
Call storages
action to sync after setting up a CDK App and Stack:
import { Stack, App } from '@aws-cdk/core'
import SyncCloudStorage from 'sync-cloud-storage'
const app = new App()
const stack = new Stack(app, 'MyStack')
const syncCloudStorage = new SyncCloudStorage(stack, {
storages: [
{
name: 'my-bucket',
patterns: ['assets/*'],
actions: ['upload', 'delete'],
prefix: 'assets',
acl: 'public-read',
metadata: {
foo: 'bar',
bar: 'foo',
},
},
],
})
syncCloudStorage.storages()
Option | Notes | Type | Required | Default |
---|---|---|---|---|
storages | List of storages, Minimum items: 1 | array of storage | true | undefined |
region | Cloud (AWS) region | string | false | undefined or AWS_REGION environment variable |
endpoint | Cloud (AWS) Endpoint URL | string | false | undefined or AWS_ENDPOINT_URL environment variable |
offline | Offline mode | boolean | false | false or IS_OFFLINE environment variable |
disabled | Disable sync | boolean | false | false |
silent | Silent output logs | boolean | false | false |
Option | Notes | Type | Required | Default |
---|---|---|---|---|
name | Name of storage (AWS S3 Bucket), Minimum length: 1 | string | true | undefined |
patterns | Patterns of glob paths to include or exclude on sync action, Minimum items: 1 | array of string | true | undefined |
actions | Sync actions, Valid values: upload , delete | array of string | false | upload : Only upload new or modified file, delete : Only delete files that are not in the local environment from the storage |
prefix | Prefix for the storage files and folders | string | false | '' |
enabled | Enable or disable the storage on sync action | boolean | false | true |
acl | AWS S3 Canned ACL, Valid values: private , public-read , public-read-write , authenticated-read | string | false | undefined |
metadata | A set of metadata key/value pair to be set or unset on the object | object | false | undefined |
tags | A set of tag key/value pair to be set or unset on the object | object | false | undefined |
gitignore | Use .gitignore file to exclude files and directories | boolean | false | false |
ignoreFiles | Ignore files and directories to exclude from sync action | array of string | false | undefined |
FAQs
[![NPM](https://img.shields.io/npm/v/sync-cloud-storage)](https://www.npmjs.com/package/sync-cloud-storage) [![Pipeline Status](https://github.com/msudgh/sync-cloud-storage/actions/workflows/ci.yml/badge.svg?branch=main)](./.github/workflows/ci.yml) [![Co
We found that sync-cloud-storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.