Getting an error in the code cell that is querying the S3 bucket. Here is the code:
file_s3_key = ‘csv/ratings_ml_training_dataset.csv’
kwargs = {‘ExpressionType’: ‘SQL’,
‘Expression’: “”“SELECT * FROM s3object AS s WHERE s."productline" = ‘Trains’ LIMIT 20"”",
‘InputSerialization’: {‘CSV’: {“FileHeaderInfo”: “Use”}, ‘CompressionType’: ‘NONE’},
‘OutputSerialization’: {‘CSV’: {}},
}
Here is the error:
ClientError: An error occurred (MethodNotAllowed) when calling the SelectObjectContent operation: The specified method is not allowed against this resource.
Everything seems to be set up properly. I get the same error running the provided solution code. Is there an issue in the lab?
Thank you everyone for reporting this issue. We have informed our engineering team and they will look into it. In the meantime, please skip over the last two code cells in section 4.1 and continue on with the rest of the lab.
Hi @arunvsuresh , no updates yet, sorry about this. The engineers are working through a backlog of troubleshooting issues, hopefully they can resolve this issue next week. Thank you so much for you patience. Are you able to complete the rest of the lab by skipping the two cells?
Thanks for raising this again. Our engineers looked into this. The issue is due to AWS deprecating S3 select. We are working on a solution. In the meantime, please skip over this and complete the rest of the lab. Thank you so much for your patience!