faint-motherboard-95438
01/28/2019, 4:40 PMgentle-diamond-70147
01/28/2019, 5:09 PMcontent
in-line in my gcp.storage.BucketObject
and when I change the content value, Pulumi detects this and modifies the content of the file in the google bucket.faint-motherboard-95438
01/28/2019, 7:42 PMsource
param, not the content
onesource
is the same, but the file content/md5 is definitely notgentle-diamond-70147
01/28/2019, 7:46 PMgcp.storage.BucketObject
? I'm not seeing what you describe (but am seeing something different), so want to make sure I'm using it the same way you are.faint-motherboard-95438
01/28/2019, 8:44 PMargs.objects.forEach(object => {
const assetName = path.basename(object, path.extname(object))
new gcp.storage.BucketObject(
`${name}-${assetName}`,
{
bucket: this.bucket.name,
name: path.basename(object),
source: object,
},
{
parent: this,
dependsOn: this.bucket,
},
)
})
where :
- args.objects
is an array of absolute path of files on the local filesystem
- we are in the constructor of a pulumi.ComponentResource
extended class
and giving the first object creation works fine, only a change in the file is basically invisible (no error nor update reported)gentle-diamond-70147
01/28/2019, 8:52 PMfaint-motherboard-95438
01/28/2019, 8:52 PM