I am getting the following error when running the s3 lab.
An error occurred (MethodNotAllowed) when calling the SelectObjectContent operation: The specified method is not allowed against this resource.
This is related to the step where I am doing
response = s3_select_object_content(bucket_name=BUCKET_NAME, object_key=file_s3_key, **kwargs)
I can see the bucket and the uploaded csv file in the console.
Hello @zensim
Sorry for the inconvenience. Our team are aware of this issue and are working on it. You will be informed when the issue is resolved.
For the time being, you can skip the two cells after s3_select_object_content and continue with the lab.
Hi @Amir_Zare I am having the same error: āAn error occurred (MethodNotAllowed) when calling the SelectObjectContent operation: The specified method is not allowed against this resourceā.
I am getting the same error:ClientError: An error occurred (MethodNotAllowed) when calling the SelectObjectContent operation: The specified method is not allowed against this resource.
Please check and resolve.
Hello @mateusamorim96
Unfortunately, I was not able to reproduce the problem. Had you run the source scripts/setup.sh as described in step 7 in Vocareum? What about step 2.2 of the lab? Were you able to connect to the database?
I missed the āsource scripts/setup.shā so I right-clicked and selected ārun scriptā, not sure if it will produce the same thing. I was able to connect to the database and get the hostname from it using the terminal.
Update: While I was writing here I decided to try one more time. First, using āsource scripts/setup.shā took more time to finish so it has some differences in it. Second, I noticed a second VPC ID with the same name (de-c1w2) so thereās a chance I was getting the security group id from one instead of the other and that was messing with the Glue Job.