S3SyncDeployAction is a drop in replacement for S3DeployAction AWS CDK toolkit
Codepipeline Action to deploying artifacts to S3. S3SyncDeployAction deploys to S3 like aws sync --delete
does. It syncs with S3 deleting any old non-existent file in artifact directory.
npm install @monim67/s3-sync-deploy-action
or
yarn add @monim67/s3-sync-deploy-action
Usage is similar to S3DeployAction.
import { S3SyncDeployAction } from "@monim67/s3-sync-deploy-action";
const deployAction = new S3SyncDeployAction({
actionName: 'S3Deploy',
bucket: targetBucket,
input: sourceOutput,
});