As mentioned in #51 there is still an issue with a combination of Mobile Hub generated APIs and Manually created APIs.
Steps to reproduce:
Create an API 'manually' from API Gateway console ( or create Lambda function from Lambda console and add API Gateway as a trigger ).
Add a resource and method. The integration type will be a Lambda function
Deploy your API to a stage
Find your project in Mobile Hub
Select the Cloud Logic tile
Select “Import existing API”
Find and select your manually created API from above
pull the updated configuration using cli
awsmobile pull
The output of my mobile-hub-project.yml is:
components:
ManualAPI: !com.amazonaws.mobilehub.v0.API
attributes:
api-arn: ‘***************************************’
description: Manually Created API
name: ManualAPI
requires-signin: true
sdk-generation-stage-name: Development
paths:
/manualapi: !com.amazonaws.mobilehub.v0.Function {}
Create a new API via CLI
awsmobile cloud-api configure
Follow steps to create new API
Push update to Mobile Hub
Push fails
invalid lambda function name: ManualAPI/manualapi: tag:yaml.org,2002:js/undefined '' lambda function name can only contain alphanumeric characters: a-z A-Z 0-9 Warning: no codebase found for lambda function: ManualAPI/manualapi: tag:yaml.org,2002:js/undefined '' validation failed
The output of my mobile-hub-project.yml after creating new API is:
CLI Version : 1.0.21 Similar Issues: #51
As mentioned in #51 there is still an issue with a combination of Mobile Hub generated APIs and Manually created APIs.
Steps to reproduce:
pull the updated configuration using cli
awsmobile pull
The output of my
mobile-hub-project.yml
is:awsmobile cloud-api configure
Push fails
invalid lambda function name: ManualAPI/manualapi: tag:yaml.org,2002:js/undefined '' lambda function name can only contain alphanumeric characters: a-z A-Z 0-9 Warning: no codebase found for lambda function: ManualAPI/manualapi: tag:yaml.org,2002:js/undefined '' validation failed
The output of my
mobile-hub-project.yml
after creating new API is:There are numerous attributes of the ManualAPI component that have errors in their values.