Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created April 13, 2023 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianleroux/d396eeebfec9b38610e39358ec45f175 to your computer and use it in GitHub Desktop.
Save brianleroux/d396eeebfec9b38610e39358ec45f175 to your computer and use it in GitHub Desktop.
fix for s3 behaviour change
/**
* 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