This message was deleted.
# golang
s
This message was deleted.
w
Something along the lines of this perhaps:
Copy code
if _, err := s3.NewBucketObject(ctx, name, &s3.BucketObjectArgs{
				Bucket:      siteBucket.ID(),                      // reference to the s3.Bucket object
				Source:      asset.NewFileAsset(filePath),         // use FileAsset to point to a file
				ContentType: mime.TypeByExtension(path.Ext(name)), // set the MIME type of the file
			}, pulumi.ResourceOpt{DependsOn: []pulumi.Resource{acl}}); err != nil {
				return err
			}
Thus
DependsOn
is only needed when the dependency is not explicit. I think this is indeed a case where the objects depend on the ACL implicitly and so the dependency does need to be provided via
DependsOn
.
a
👍 makes sense
thanks again