sparse-intern-71089
11/04/2021, 5:20 PMred-match-15116
11/04/2021, 5:28 PMpublicAccessBlockConfiguration
might be what you need? https://www.pulumi.com/registry/packages/aws-native/api-docs/s3/bucket/#publicaccessblockconfiguration_nodejsmillions-furniture-75402
11/04/2021, 5:28 PMnew aws.s3.BucketPublicAccessBlock(
`${appName}-block-public-access`,
{
bucket: myBucket.id,
blockPublicAcls: true,
blockPublicPolicy: true,
ignorePublicAcls: true,
restrictPublicBuckets: true,
},
{
parent: myBucket,
},
);
millions-umbrella-34765
11/04/2021, 6:30 PMconst bucket = new aws_native.s3.Bucket("<http://dev-assets.mydomain.com|dev-assets.mydomain.com>", {
bucketName: "<http://dev-assets.mydomain.com|dev-assets.mydomain.com>",
publicAccessBlockConfiguration: { blockPublicAcls: true}
});
Is there an advantage to defining it separately?millions-umbrella-34765
11/04/2021, 6:31 PMpulumi preview
that it's going to replace the bucket. Is there a way to avoid that?millions-umbrella-34765
11/04/2021, 6:55 PMProperty 'BucketPublicAccessBlock' does not exist on type 'typeof import("/Users/phil/.../developer.mydomain.com/devops/pulumi/node_modules/@pulumi/aws-native/s3/index")'.
millions-umbrella-34765
11/04/2021, 6:55 PMmillions-umbrella-34765
11/04/2021, 6:59 PMpulumi up
and it tries to delete the bucket and fails.millions-furniture-75402
11/04/2021, 7:47 PMmillions-umbrella-34765
11/05/2021, 2:31 PMaws-native
) is trying to replace the bucket, that's a bug, https://github.com/pulumi/pulumi-aws-native/issues/204