Skip to content

Commit

Permalink
Merge pull request #13 from troy-ameigh/main
Browse files Browse the repository at this point in the history
added bucket versioning.
  • Loading branch information
vsnyc authored Sep 22, 2023
2 parents 0eee190 + a69d66b commit a221687
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions templates/git2s3.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ Resources:
LambdaZipsBucket:
Type: AWS::S3::Bucket
Properties:
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
VersioningConfiguration:
Status: Enabled
Tags: []

CopyZips:
Expand Down Expand Up @@ -276,6 +287,17 @@ Resources:
Type: AWS::S3::Bucket
Properties:
Tags: []
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
VersioningConfiguration:
Status: Enabled

OutputBucket:
Type: AWS::S3::Bucket
Expand All @@ -284,6 +306,15 @@ Resources:
- AutoGenOutputBucketName
- !Ref 'OutputBucketName'
- !Ref 'AWS::NoValue'
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
VersioningConfiguration:
Status: Enabled
Tags: []
Expand Down Expand Up @@ -751,7 +782,7 @@ Resources:
- mv ./enc_key.pem ~/.ssh/id_rsa
- ls ~/.ssh/
- echo "Setting SSH config profile"
- |
- |
cat > ~/.ssh/config <<EOF
Host *
AddKeysToAgent yes
Expand All @@ -766,7 +797,7 @@ Resources:
- |
if [ "$exclude_git" = "True" ]; then
zip -r $outputbucketkey ./ -x '*.git*'
else
else
zip -r $outputbucketkey ./
fi
- ls -alh
Expand Down

0 comments on commit a221687

Please sign in to comment.