Skip to content

Commit

Permalink
Fix s3 bucket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm committed Nov 24, 2023
1 parent 6e89083 commit e56edd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@topmonks/pulumi-aws",
"version": "3.1.3",
"version": "3.1.4",
"description": "Custom AWS Resources for Pulumi",
"keywords": [
"pulumi",
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"scripts": {
"build": "tsc",
"package": "yarn run build && cp -R lambdas/code/* bin/lambdas",
"package": "rm -rf bin/ && yarn run build && touch bin/yarn.lock && cp package.json bin/ && cp -R lambdas/code/* bin/lambdas",
"install-peers": "install-peers"
},
"pulumi": {
Expand Down
9 changes: 1 addition & 8 deletions website.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ function createBucket(
`${domain}/bucket`,
{
bucket: domain,
acl: "public-read",
corsRules: [
{
allowedHeaders: ["*"],
Expand All @@ -142,12 +141,6 @@ function createBucket(
},
{ parent }
);
new aws.s3.BucketOwnershipControls(`${domain}/bucket-ownership-controls`, {
bucket: bucket.id,
rule: {
objectOwnership: "ObjectWriter"
}
});
new aws.s3.BucketPublicAccessBlock(`${domain}-bucket-pab`, {
bucket: bucket.id,
blockPublicAcls: false,
Expand Down Expand Up @@ -179,7 +172,7 @@ function createBucketPolicy(
Version: "2012-10-17",
Statement: [
{
Sid: "1",
Sid: "PublicReadGetObject",
Effect: "Allow",
Principal: {
AWS: "*"
Expand Down

0 comments on commit e56edd6

Please sign in to comment.