Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aws amplify #123

Merged
merged 27 commits into from
Nov 29, 2023
Merged

Add aws amplify #123

merged 27 commits into from
Nov 29, 2023

Conversation

aymanhab
Copy link
Member

@aymanhab aymanhab commented Nov 1, 2023

integrate front and back end into aws amplify, build lambda function from docker file

Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for grand-clafoutis-85edb2 failed.

Name Link
🔨 Latest commit 9110826
🔍 Latest deploy log https://app.netlify.com/sites/grand-clafoutis-85edb2/deploys/65667e48573e870007d449a3

Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for comforting-speculoos-d9e100 failed.

Name Link
🔨 Latest commit 9110826
🔍 Latest deploy log https://app.netlify.com/sites/comforting-speculoos-d9e100/deploys/65667e4826870d000827bc4f

@aymanhab
Copy link
Member Author

aymanhab commented Nov 1, 2023

@AlbertoCasasOrtiz I'm trying to merge/build my latest environment and the build fails because aws-exports is missing, would you be able to pull this branch and use amplify to run it locally? Thanks

@aymanhab
Copy link
Member Author

aymanhab commented Nov 6, 2023

@AlbertoCasasOrtiz This is ready for review now, a couple lingering issues though:

  1. Credentials: as of now I locally use my AWS secret code at the top, you'll need to do the same to test, then we figure out how to do something similar to AddBiomechanics for a long term solution.
  2. Uploading and processing show no progress bar or notification, should use toast messages.

Please let me know if you get this branch working in local environment. Thank you

Copy link
Collaborator

@AlbertoCasasOrtiz AlbertoCasasOrtiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just a comment about a prefix in one of the yaml environment file, but otherwise it LGTM.

- typing-inspect==0.9.0
- urllib3==2.0.2
- wrapt==1.15.0
prefix: /home/ayman/miniconda3/envs/osv_bend
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prefix is pointing to a path in a specific machine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks for the find and please remove as we discussed, particularly the aws.yml file is not used by aws altogether

@aymanhab
Copy link
Member Author

@AlbertoCasasOrtiz if the deployment on aws works as expected let me know and I'll review, thanks

@AlbertoCasasOrtiz
Copy link
Collaborator

AlbertoCasasOrtiz commented Nov 20, 2023

@aymanhab I tested and login/logout works, but there is a problem with register.

When you register an user, it is marked in AWS as unconfirmed, so we should be able to send an email or something similar to users so they can confirm their accounts: https://docs.amplify.aws/javascript/build-a-backend/auth/enable-sign-up/#confirm-sign-up

Since we do not have an email or any way of communicating with users set up yet, we could autoconfirm users when created by now, and create an issue to address the user confirmation in the future,

@aymanhab
Copy link
Member Author

@AlbertoCasasOrtiz Agreed, my view of minimal usable release is a state where users can upload models and share with a link to somebody without login, will eventually consolidate all the various logins somehow

@AlbertoCasasOrtiz
Copy link
Collaborator

@aymanhab Should be fixed now and allow sign up without needing to confirm from email. I followed this solution.

@aymanhab aymanhab merged commit 65ec2b5 into master Nov 29, 2023
1 of 7 checks passed
@aymanhab aymanhab deleted the add_aws_amplify branch November 29, 2023 17:37
@aymanhab aymanhab restored the add_aws_amplify branch November 29, 2023 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants