@mstuercke/pulumi-modules 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { s3 } from '@pulumi/aws';
2
- import { type ComponentResourceOptions } from '@pulumi/pulumi';
2
+ import type { ComponentResourceOptions } from '@pulumi/pulumi';
3
3
  type PublicS3BucketArgs = {
4
4
  name: string;
5
5
  allowPresignedPost?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { s3 } from '@pulumi/aws';
2
- import {} from '@pulumi/pulumi';
3
2
  export class PublicS3Bucket extends s3.Bucket {
4
3
  constructor(id, args, opts) {
5
4
  const { name, allowPresignedPost = false, tags } = args;
@@ -14,7 +13,7 @@ export class PublicS3Bucket extends s3.Bucket {
14
13
  const ownershipControls = new s3.BucketOwnershipControls('ownership', {
15
14
  bucket: this.id,
16
15
  rule: { objectOwnership: 'BucketOwnerPreferred' },
17
- }, { parent: this });
16
+ }, { parent: this, dependsOn: [accessBlock] });
18
17
  const acl = new s3.BucketAcl('acl-new', {
19
18
  bucket: this.id,
20
19
  acl: 'public-read',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstuercke/pulumi-modules",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "files": [
5
5
  "dist/**/!(*.test|*.fixture){.d.ts,.js}",
6
6
  "README.md"