We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3563b20 commit 0d55468Copy full SHA for 0d55468
CloudFormation/S3-Hosted-Website/index.py
@@ -78,15 +78,3 @@ def upload_to_s3(bucket, path):
78
print(f'Uploading: {full_path} [{mime_type}]')
79
bucket.put_object(
80
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