1. Packages
  2. Synced Folder
  3. Installation & Configuration
Synced Folder v0.11.1 published on Wednesday, Aug 2, 2023 by Pulumi

Synced Folder: Installation & Configuration

synced-folder logo
Synced Folder v0.11.1 published on Wednesday, Aug 2, 2023 by Pulumi

    Installing the package

    The Synced Folder component package is available in the following Pulumi languages:

    You can install the package with your package manager of choice:

    $ npm install @pulumi/synced-folder
    
    $ yarn add @pulumi/synced-folder
    
    $ pip install pulumi_synced_folder
    
    $ go get -u github.com/pulumi/pulumi-synced-folder/sdk/go/synced-folder
    
    $ dotnet add package Pulumi.SyncedFolder
    

    Configuring

    The package contains three components:

    • S3BucketFolder syncs the contents of a local folder to a specified Amazon S3 bucket.
    • AzureBlobFolder syncs to a specified Azure Blob Storage container.
    • GoogleCloudFolder syncs to a specified Google Cloud Storage bucket.

    Because each of these components is backed by a different cloud, they’re each configured a little differently.

    Configuring cloud-provider settings

    By default, the component inherits the cloud-provider settings of the project it belongs to, so if your project is configured to use the us-east-1 region of AWS, for example, any S3BucketFolders you declare will use that same region as well. You can adjust this behavior, however, on a case-by-case basis by customizing the component’s resource provider.

    For help configuring your cloud-provider credentials, see the Installation & Configuration pages of the AWS, Azure Native, and Google Cloud provider packages.

    Configuring components

    The following input properties are common to all three Synced Folder components:

    PropertyTypeDescription
    pathstringThe path (relative or fully-qualified) to the folder containing the files to be synced. Required.
    managedObjectsbooleanWhether to have Pulumi manage files as individual cloud resources. Defaults to true. See below for details.

    The sections below list component-specific input properties.

    S3BucketFolder properties

    PropertyTypeDescription
    bucketNamestringThe name of the S3 bucket to sync to (e.g., my-bucket in s3://my-bucket). Required.
    aclstringThe AWS Canned ACL to apply to each file (e.g., public-read). Required.

    AzureBlobFolder properties

    PropertyTypeDescription
    containerNamestringThe name of the Azure storage container to sync to. Required.
    storageAccountNamestringThe name of the Azure storage account that the container belongs to. Required.
    resourceGroupNamestringThe name of the Azure resource group that the storage account belongs to. Required.

    GoogleCloudFolder properties

    PropertyTypeDescription
    bucketNamestringThe name of the Google Cloud Storage bucket to sync to (e.g., my-bucket in gs://my-bucket). Required.
    synced-folder logo
    Synced Folder v0.11.1 published on Wednesday, Aug 2, 2023 by Pulumi