modern-diamond-82589
06/27/2018, 8:05 PMcolossal-beach-47527
06/27/2018, 8:07 PMbucketName
e.g. “uploads-bucket” and “s3://uploads-bucket”. But that obviously won’t work if you are relying on Pulumi to name the bucket for you.dependsOn
property. But I don’t believe there is any way for us to break a circular dependency like that. (@white-balloon-205 would know for certain.)modern-diamond-82589
06/27/2018, 8:09 PMcolossal-beach-47527
06/27/2018, 8:11 PMmodern-diamond-82589
06/27/2018, 8:12 PMBucketArgs.bucket
to a hard-coded value avoids the circular dependency. Of course, as @colossal-beach-47527 mentioned, you'll have to devise a naming scheme that is globally unique. Furthermore, if you don't want to recreate the bucket every time, you'll need to keep the bucket name consistent across build & deploy cycles.powerful-whale-8767
06/27/2018, 8:36 PMaws.s3.BucketPolicy
resource, which allows you to attach a bucket policy to an existing bucket.modern-diamond-82589
06/27/2018, 8:45 PMaws.s3.BucketPolicy
works great.stocky-spoon-28903
06/28/2018, 1:40 AM