amazon-web-servicesamazon-s3aws-mobilehub

aws: Failed to add new API in cloud logic, mobile hub


When I try create new api or import api from api gateway in cloud logic, mobile hub aws, I get this error:

Failed to update project: Unable to deploy resources because the deployments S3 bucket is missing.

There is deployments folder in s3 bucket.


Solution

  • Your Mobile Hub project uses a project-specific S3 bucket to deploy artifacts to AWS Lambda and Amazon API Gateway. This bucket is created when the project is created or if that didn't happen, then an attempt will be made to create the bucket each time you update any project configuration in Mobile Hub. There are a number of reasons creation of the bucket could have failed. For example, you could have a DENY policy in place which is preventing the MobileHub_Service_Role from having the appropriate permissions to create the S3 bucket. Or, you could be at your maximum limit of buckets (default limit is 100, but you can contact customer support to get the limit increased). If the bucket exists, then you will see it on the Resources page in Mobile Hub (with "deployments" in the name).

    If you're not able to resolve this based on the information above, then please contact customer support and give them your account ID and someone from the Mobile Hub team will look up the reason for the S3 bucket creation failure in the service logs.