Skip to content

Commit

Permalink
CMDCT-4279 - adds correct config for s3 bucket (#865)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Holman <[email protected]>
  • Loading branch information
peoplespete and JonHolman authored Jan 30, 2025
1 parent fff97ea commit 2c56e89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ if ! which yarn > /dev/null ; then
fi

# check serverless is installed globally.
if ! which serverless > /dev/null ; then
echo "installing serverless globally"
yarn global add [email protected]
if ! which serverless > /dev/null || ! serverless --version 2>&1 | grep -q " 4."; then
echo "installing serverless v4 globally"
yarn global add [email protected]
export PATH="$PATH:$(yarn global bin)"
fi

# have to ensure that yarn install is up to date.
Expand Down
2 changes: 1 addition & 1 deletion services/app-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ custom:
serverlessPluginTypescript:
tsConfigFileLocation: "./tsconfig.json"
stage: ${sls:stage}
region: ${aws:region}
region: ${self:provider.region}
wafPlugin:
name: ${self:service}-${self:custom.stage}-webacl-waf
wafExcludeRules:
Expand Down
7 changes: 7 additions & 0 deletions services/uploads/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ resources:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
VersioningConfiguration:
Status: Enabled
AccessControl: Private
Outputs:
AttachmentsBucketName: # Print out the name of the bucket that is created
Expand Down

0 comments on commit 2c56e89

Please sign in to comment.