Skip to content

Commit 5c622ce

Browse files
committed
Initial Commit
1 parent 212fd65 commit 5c622ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/python/lambda_function.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initProcess(event):
2626
bucketName = os.environ['BucketName']
2727

2828
s3client = boto3.resource('s3')
29-
s3client.Bucket(bucketName).download_file('Launch-Stack-Icons/generic-launch-stack.png', '/tmp/original.png')
29+
s3client.Bucket(bucketName).download_file('launch-stack-icons/generic-launch-stack.png', '/tmp/original.png')
3030

3131
# Read the image
3232
originalImage = cv.imread('/tmp/original.png', cv.IMREAD_UNCHANGED)
@@ -71,7 +71,7 @@ def saveImageToS3(image, sentText, bucketName, s3client):
7171
# remove the whitespace (if any) at the ends of the sent text and replace spaces with '-'
7272
key = sentText.strip().replace(' ','-') + ".png"
7373

74-
Prefix = 'Launch-Stack-Icons/'
74+
Prefix = 'launch-stack-icons/'
7575

7676
s3 = boto3.resource('s3')
7777

0 commit comments

Comments
 (0)