Skip to content

Commit

Permalink
Added org s3 bucket for storing lambda code (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyramic authored Oct 11, 2024
1 parent 547d018 commit c41d451
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ Resources:
Id: Backup
Prefix: ''
Status: Enabled
# SourceSelectionCriteria:
# ReplicaModifications:
# Status: Disabled
# Status: Disabled

EgressBucketBackupRole:
Type: 'AWS::IAM::Role'
Expand Down Expand Up @@ -267,6 +263,16 @@ Resources:
- "s3:DeleteObject"
Resource: !Sub "${EgressBucket.Arn}/*"

LambdaCodeBucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: !Sub "${AppName}-lambda-code-${OrganisationName}-${Environment}"
AccessControl: Private
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256

Outputs:
ExternalDataStoreBucketName:
Value: !Ref ExternalDataStoreBucket
Expand Down Expand Up @@ -295,3 +301,6 @@ Outputs:
EgressRoleARN:
Value: !GetAtt EgressStorageRole.Arn
Description: ARN of the role used to access the egress bucket
LambdaCodeBucket:
Value: !Ref LambdaCodeBucket
Description: Name of the Code Bucket to store lambda functions

0 comments on commit c41d451

Please sign in to comment.