magnificent-soccer-44287
10/12/2023, 8:20 PMminiature-musician-31262
10/12/2023, 8:28 PMaws.s3.BucketObject
), they yes, they are counted. But if you only manage the bucket itself, then it'd just be the one resource.
In cases where you don't need Pulumi to manage these resources (e.g., if you're managing a static website with hundreds or thousands of files), we have a component you can use to sync them to a bucket so you don't have to deal with having to write that machinery yourself: https://www.pulumi.com/registry/packages/synced-folder/magnificent-soccer-44287
10/12/2023, 8:34 PMminiature-musician-31262
10/12/2023, 9:06 PMmagnificent-soccer-44287
10/12/2023, 10:00 PMminiature-musician-31262
10/12/2023, 10:02 PMmanagedObjects
to false
? (The default implementation also uses BucketObject
.) https://www.pulumi.com/registry/packages/synced-folder/#managed-and-unmanaged-file-objectsmagnificent-soccer-44287
10/12/2023, 10:03 PMminiature-musician-31262
10/12/2023, 10:04 PMdestroy
and up
again, as the component doens't handle switching seamlessly between these. (There's a note about this at the end of that section.)little-cartoon-10569
10/12/2023, 10:19 PMmagnificent-soccer-44287
10/13/2023, 12:17 AMconst bucketFolder = new synced_folder.S3BucketFolder("bucket-folder", {
path: path,
bucketName: bucket.bucket,
acl: "public-read",
managedObjects: false
}, { dependsOn: [ownershipControls, publicAccessBlock]});
and the following stack:
├─ synced-folder:index:S3BucketFolder bucket-folder
│ └─ command:local:Command bucket-folder-sync-command
How does one actually invoke the command - programmatically or via CLI? having some issues trying to divine that from https://www.pulumi.com/registry/packages/command/api-docs/local/command/little-cartoon-10569
10/13/2023, 12:48 AMtriggers
also triggers execution: https://www.pulumi.com/registry/packages/command/api-docs/local/command/#triggers_nodejsminiature-musician-31262
10/13/2023, 1:11 PMaws s3 sync
command is invoked implicitly (and only when necessary) by the synced-folder component.