Skip to content

Commit 0d55468

Browse files
committed
Update
1 parent 3563b20 commit 0d55468

File tree

1 file changed

+0
-12
lines changed
  • CloudFormation/S3-Hosted-Website

1 file changed

+0
-12
lines changed

CloudFormation/S3-Hosted-Website/index.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,3 @@ def upload_to_s3(bucket, path):
7878
print(f'Uploading: {full_path} [{mime_type}]')
7979
bucket.put_object(
8080
Key=full_path[len(path)+1:], Body=data, ContentType=mime_type)
81-
82-
83-
if __name__ == "__main__":
84-
event = {
85-
'ResourceProperties': {
86-
'BucketName': 'deploytos3-s3bucket-t64wa3xyw4fu',
87-
'RepoSubdir': 'WebApps/Contact-Form/webapp',
88-
'RepoURL': 'https://github.com/linuxacademy/content-lambda-boto3/'
89-
},
90-
'ResponseURL': 'https://example.com'
91-
}
92-
lambda_handler(event, {})

0 commit comments

Comments
 (0)