Following the docs, I set my environment variable in the console ($CLIENT_ID
).
In the console I added the echo command to try and insert the variable into a .env
.
The error I keep getting is There was an issue connecting to your repo provider
. When I remove the echo
line the build passes. I've tried single/double quotes and putting the line above/below the other lines under the build commands phase.
Here's the backend section for the build process.
backend:
phases:
build:
commands:
- echo 'CLIENT_ID=$CLIENT_ID' >> backend/.env
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple