monim67 / s3-sync-deploy-action

AWS CDK Codepipeline Action construct to deploy website to s3 deleting old files

Home Page:https://www.npmjs.com/package/@monim67/s3-sync-deploy-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s3-sync-deploy-action

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.

Installation

npm install @monim67/s3-sync-deploy-action

or

yarn add @monim67/s3-sync-deploy-action

Usage

Usage is similar to S3DeployAction.

import { S3SyncDeployAction } from "@monim67/s3-sync-deploy-action";

const deployAction = new S3SyncDeployAction({
  actionName: 'S3Deploy',
  bucket: targetBucket,
  input: sourceOutput,
});

About

AWS CDK Codepipeline Action construct to deploy website to s3 deleting old files

https://www.npmjs.com/package/@monim67/s3-sync-deploy-action

License:MIT License


Languages

Language:Python 67.0%Language:TypeScript 31.5%Language:JavaScript 1.5%