Closed nawwa closed 6 years ago
Hi @nawwa , The mobile hub throws error because you modified the cloud-api feature outside of the mobile hub. (as printed out in the error message): "Amazon CloudFormation has been modified outside of the Mobile Hub. This stage 'Development' can no longer be modified inside of Mobile Hub"
Thanks, yeah of course i saw that,. ! What 'outside of the mobile hub" means ? Because if I modify a lambda linked to the cloud-api (so inside of the mobile hub) i should be able to use 'awsmobile pull' to get the modifications..
It seems that if I modify the mobile hub project manually, the awsmobile cli is not able to sync properly when i use awmobile pull
For example : 1-Cloud API (api gateway) is enabled on the mobile hub project 2-I modify the cloud-api using the awsmobile cli (for example i add a path) 3-I run awsmobile push, everything works, the cli create the path and a lambda function with some nodejs code inside
Then :
4-I modify the lambda using aws lambda editor (aws website) 5-I use awsmobile pull to get the modification i just did 6-This is where my error occurs, after this i can't use push or pull
Is this normal ? maybe its a normal behaviour, just trying to figure it out
Thanks
This is a normal behavior, your stack was locked because of you modified the lambda out side of mobile hub(not using AWS Mobile Hub Console or AWSMobileCLI). By default, mobile hub don't want to override you changes. If you go to AWS Mobile Hub console -> your locked project -> CloudLogic, you will be asked to unlock your project.
Ok got it :+1: Thanks guys
I just unlocked and everything was deleted. Can someone explain to me how to undo this unlock?
When you unlock the feature there is a warning message that is saying that your changes are going to be overwritten, but it shouldn't delete the api just returned it to the state that was configured on Mobilehub
how do you unlock?
@micahkatz You have to go to the console to do that. Have you tried amplify-cli
Hello, I'm not sure if its an issue or not but i don't know where to ask.
My project has a cloud-api configured, some lambdas execute the code. I modified the lambda inside aws code editor, and i did a awsmobile pull
Now i try to push a new path (/fleet) to my cloud api with
But when I try to push the configuration i get this error, and i don't understand why.