Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to amplify push when function created

Using the aws-amplify cli v4.17.1, I don't seem to be able to push my changes through using the 'amplify push' command when a function is included in the amplify project.

E.g. I have created a simple hello world function using the amplify add function command. Then built the function using the amplify build function command.

Finally, when running amplify push - i receive the following error.

× An error occurred when pushing the resources to the cloud

Only one CloudFormation template is allowed in the resource directory
An error occurred during the push operation: Only one CloudFormation template is allowed in the resource directory

Has anyone else encountered this previously?

like image 834
apollocr Avatar asked Jan 26 '26 11:01

apollocr


1 Answers

The issue was resolved by upgrading to amplify CLI version 4.17.2

like image 55
apollocr Avatar answered Jan 29 '26 13:01

apollocr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!