Reputation: 473
How can I deploy a set of amplify files created by someone else to my AWS account?
I have an amplify project created by a complete stranger. There is no hosting involved. Only the backend authentication and functions exist. When I git clone the amplify project and try to do an amplify init or amplify push, the authentication and function categories are not recognized. I checked the files and there is definitely a set of auth and function files in the backend folder.
When I do amplify add function, the function I created shows up in amplify push. How do I deploy the existing auth and functions to amplify in my AWS account? Rebuilding every resource with amplify add would be ridiculous.
Since the actual source code resides at a confidential URL other than github You cannot specify the URL with amplify init --app.
How can I deploy a folder that exists on my local PC directly to my AWS account?
Upvotes: 0
Views: 195
Reputation: 57
Make sure your AWS credentials are correctly configured for your project. You can update them using the AWS CLI or by checking your AWS configuration files.
Here's a step-by-step guide:
cd /path/to/your/project
rm -rf amplify
After deleting the Amplify folder, restart your project and run the necessary Amplify commands to set up your project again.
#configure your amplify project amplify configure
Enter the access key of the newly created user: ? accessKeyId: # YOUR_ACCESS_KEY_ID ? secretAccessKey: # YOUR_SECRET_ACCESS_KEY
amplify init
hope it will help you
Upvotes: 0