pulumi / pulumi-synced-folder

A Pulumi component that synchronizes a local folder to Amazon S3, Azure Blob Storage, or Google Cloud Storage.
Apache License 2.0
3 stars 2 forks source link

Add ignorePaths input #20

Open jkodroff opened 1 year ago

jkodroff commented 1 year ago

When syncing a codebase with S3 (a common use case when doing workshops involving services like CodeBuild), we don't want to push any files that are in .gitignore, but there's no easy way to do this with the current inputs.

I'd love to be able to do this:

new syncedFolder.S3BucketFolder("environment-vpc", {
  acl: aws.s3.PublicReadAcl,
  bucketName: bucket.bucket,
  path: "../environment-vpc/v1",
  ignorePaths: ["../environment-vpc/v1/template/node_modules"],
});