kind-ambulance-33034
05/28/2019, 11:34 PMError: failed to register new resource media [aws:s3/bucketObject:BucketObject]: 2 UNKNOWN: failed to compute asset hash: asset path 'www/static/media' is a directory; try using an archive
at Object.registerResource
white-balloon-205
BucketObject
from a directory. That won't work, as a BucketObject
in AWS represents a single file.
You would likely need to recursively walk the folder and create BucketObjects
for each file you find if that is the desired outcome.
There's an example of this here that we use for our pulumi.io site infrastructure: https://github.com/pulumi/docs/blob/master/infrastructure/index.ts#L177-L194kind-ambulance-33034
05/29/2019, 2:57 PM