C3W1: Lab1: Problem with bucket Versioning

The function configure_bucket_versioning() is not recognizing the bucket name. I am receiving the following error: “NoSuchBucket: An error occurred (NoSuchBucket) when calling the PutBucketVersioning operation: The specified bucket does not exist.” The preceding cell was run successfully, and I expected not to encounter that error.


Same problem here :confused:

I also experience the same issue when trying to run the configure_bucket_versioning() function.

I don’t understand why nobody is helping the user with this problem. I filled out the form and received an email stating that the problem was solved, but when I restarted the lab, I encountered the same issue. If someone gets a solution to this problem, please let me know. This is not a graded assignment, but I want to learn what we have in this lab.

Hi @Thacy, @almatrosov, @Diane_BAILLEUL – sorry for the inconvenience! Just to double-check, did you run the previous cell before calling the configure_bucket_versioning function?

@hawraa.salami – have there been any recent changes to the BUCKET_NAME variable value?

AWS_ACCOUNT_ID = subprocess.run(['aws', 'sts', 'get-caller-identity', '--query', 'Account', '--output', 'text'], capture_output=True, text=True).stdout.strip()
BUCKET_NAME = f'de-c3w1lab1-{AWS_ACCOUNT_ID}-us-east-1-data-bucket'

Yes, I did, but I kept getting the same error. I decided to fill out the form and send it after waiting for a reply, but I received no help. When I received a message telling me that the problem was solved, I restarted the lab and encountered the same issue. I gave up on the lab and felt bad because no one here was willing to help me, since that lab is essential for the week 1 learning objectives. Please help us so that we can complete that lab.

Hi!
Yes, I’ve run the previous cells, and when I saw the error, I’ve investigated a little bit.
AWS_ACCOUNT_ID was empty.
So BUCKET_NAME was only “de-c3w1lab1–us-east-1-data-bucket”.
No idea why!

The same here.

@Thacy @Diane_BAILLEUL @almatrosov Thank you all for your patience! There was an issue with the lab template due to some recent AWS updates. I just fixed the template. you can try again the lab. It’s now working, please let me know if you still encounter the same issue.

Thank you @benjamintabaresjr

1 Like

Hi,
Thank you very much!
For me, I have checked and the problem is solved.

2 Likes