bucket and output is not defined error in module 4
rupeshtiwari opened this issue · 1 comments
rupeshtiwari commented
This is the original code that is not working.
step 8 in module 4
s3_resource.Object(bucket, 'lambda/lambda.zip').upload_file('./backend/lambda/lambda.zip',ExtraArgs={'ACL':'public-read'})
lambda_zip_url = f'{bucket}'
print("lambada zip file url: " + lambda_zip_url)
Error name 'bucket' is not defined.
Below code works.
bucket = 'sagemaker-us-east-1-932704054317'
s3_resource.Object('sagemaker-us-east-1-932704054317', 'lambda/lambda.zip').upload_file('./backend/lambda/lambda.zip',ExtraArgs={'ACL':'public-read'})
lambda_zip_url = 'sagemaker-us-east-1-932704054317'
print("lambada zip file url: " + lambda_zip_url)
Similarly in step 9 error is coming saying outputs
is not defined.
leejianwei commented
YOu need to run the lab in sequence. As we defined some vairables in prevous lab.