Created
April 13, 2023 16:08
-
-
Save brianleroux/d396eeebfec9b38610e39358ec45f175 to your computer and use it in GitHub Desktop.
fix for s3 behaviour change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* put this file in src/plugins/ and add the following to the arcfile: | |
* | |
* @plugins | |
* fix-s3 | |
*/ | |
module.exports = { deploy: { start }} | |
async function start ({ arc, cloudformation }) { | |
let ref = cloudformation.Resources.StaticBucket.Properties | |
ref.PublicAccessBlockConfiguration = { | |
BlockPublicAcls: false, | |
BlockPublicPolicy: false, | |
IgnorePublicAcls: false, | |
RestrictPublicBuckets: false, | |
} | |
return cloudformation | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment