skip to Main Content

In this tutorial https://aws.amazon.com/getting-started/hands-on/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/module-1/

I’ve tried looking online, but it seems this isn’t a common issue. I’ve followed all the steps successfully up until "Step 3: Populate the git repository"

When I run the commands, it gives me the following output.

> aws s3 cp s3://wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website ./ --recursive
> fatal error: An error occurred (NoSuchBucket) when calling the ListObjectsV2 operation: The specified bucket does not exist

A couple of the common things I’ve already checked are:

  1. I’m using the correct region. My CodeCommit repository is in us-east-1, and my aws configure region is also set to that.
  2. My Access Key and Secret Key should be correct. I generated them for the corresponding IAM user and then input them via aws configure
  3. I’ve configured the IAM properly (I think). The permissions I’ve given the IAM account are:
AdministratorAccess
AmazonS3FullAccess
AmazonS3ObjectLambdaExecutionRolePolicy
AmazonS3OutpostsFullAccess
AmazonS3OutpostsReadOnlyAccess
AmazonS3ReadOnlyAccess
AWSCodeCommitPowerUser

Even attempting to contact the bucket via http returns that the bucket does not exist. https://s3.amazonaws.com/wildrydes-us-east-1/WebApplication/1_StaticWebHosting/website

Is there anything else I missed? Is there a way to download this S3 bucket online or check that it even exists? Any help would be appreciated. Thankyou!

2

Answers


  1. Here is an updated Serverless AWS tutorial that is modern and is maintained. The overview is here:

    enter image description here

    In this example, the client is a React app that uses Cognito to authenticate. This also used AWS CDK to standup resources. All steps are explained in the Readme.

    The AWS Services used in this example app are:

    • API Gateway

    • DynamoDB

    • Lambda

    • Amazon Rekognition

    • Amazon S3

    • Amazon SNS

    You can find the implemenation of this in the AWS Code Library. This example has been implemented in various AWS SDKs so you can pick the programming languagues that interests you:

    Create a photo asset management application that lets users manage photos using labels

    Login or Signup to reply.
  2. I was going through the same issue and realized AWS no longer maintains that bucket. So here, I have created an s3 bucket in a different region with all the required front-end code. Use this:

    cd wildrydes-site

    aws s3 cp s3://wildrydes-eu-central-1/WebApplication/1_StaticWebHosting/website ./ –recursive

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search