bucket:sync
Overview and basic usage
bucket:sync
Synchronizes the contents of a local directory with an S3 bucket.
You can specify the bucket in two ways:
- Using Stacktape configuration: Provide the
stageandresourceName. Stacktape will identify the bucket from the deployed stack and sync the directory specified in the configuration file. - Using bucket ID: Provide a valid
bucketId(AWS physical resource ID or bucket name) and asourcePath.
Files in the bucket that are not present in the source directory will be removed.
stacktape bucket:sync --region <<region>>
API reference
Options
region (--r)
Required
stage (--s)
Required
awsAccount (--aa)
bucketId (--bi)
configPath (--cp)
currentWorkingDirectory (--cwd)
headersPreset (--hp)
help (--h)
invalidateCdnCache (--icc)
logFormat (--lf)
logLevel (--ll)
profile (--p)
projectName (--prj)
resourceName (--rn)
sourcePath (--sp)
templateId (--ti)