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

Manually deploy Amplify Gen2 project #775

Open
2 tasks
Bradley-Cooley opened this issue Dec 5, 2023 · 6 comments
Open
2 tasks

Manually deploy Amplify Gen2 project #775

Bradley-Cooley opened this issue Dec 5, 2023 · 6 comments
Assignees
Labels
backend-cli Issue is related to Amplify backend CLI console Issues related to Amplify console UI/UX feature-request New feature or request needs-product-input Needs non-technical requirements or direction to proceed

Comments

@Bradley-Cooley
Copy link

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

No response

Is this related to another service?

Amplify Hosting

Describe the feature you'd like to request

I'd like to deploy a new Amplify Gen2 project without using the Amplify UI in the AWS Console to connect to a git provider. My project is in self-hosted Gitlab and there is no external access.

Describe the solution you'd like

I'd like to docs to provide a description of how to perform a first-time deploy of a Gen2 project without connecting to an external git provider, whether it is fairly easy via npx amplify or more difficult via AWS SDK.

Describe alternatives you've considered

I have considered temporarily putting my code on a different service provider in order to deploy - however, if I did so, I am unsure how I would change the configuration to only go back to manual deploys afterwards.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@Bradley-Cooley Bradley-Cooley added the pending-triage Incoming issues that need categorization label Dec 5, 2023
@nadetastic
Copy link
Member

Hi @Bradley-Cooley thanks for opening this issue. I'm transferring this FR over to the backend repo for better assistance.

@nadetastic nadetastic transferred this issue from aws-amplify/amplify-js Dec 5, 2023
@nadetastic nadetastic added the transferred Issue was transferred from another Amplify repository label Dec 5, 2023
@swaminator
Copy link

@ykethan ykethan added the pending-response Issue is pending response from author label Dec 6, 2023
@Bradley-Cooley
Copy link
Author

So it seems that what I'm looking to do isn't possible yet. Correct me if I'm wrong -

  1. According to the docs, you must use the web console to create an Amplify gen2 project the first time. I tried a few options for creating a gen2 project using aws amplify CLI and was unsuccessful - I was not able to create a gen2 project via the aws cli, only a gen1 project. That's fine, as a workaround I temporarily put my code into a private repo on github to create the gen2 project and then disabled auto-build. Via the aws cli I can create new branches as needed on that project and trigger backend deployments via amplify pipeline-deploy. It would be nice to not need to do this step though, and I'd imagine other people are more constrained and do not have the option to start a gen2 project by creating a git repo outside of their self-hosted solution.
  2. It seems frontend deploys are not supported unless the repo is accessible. The docs point to webhooks as the solution for frontend builds and there does not seem to be an equivalent to amplify publish in the new amplify cli. I'd imagine the workaround here would again be usage of the aws cli to manually or via script upload the frontend build artifacts to S3 and use aws amplify create-deployment and aws amplify start-deployment pointing to the S3 bucket. This seems a fairly large burden to take on for custom pipelines. Is there currently any plan to support frontend deployments with amplify hosting for gen2?

@github-actions github-actions bot removed the pending-response Issue is pending response from author label Dec 20, 2023
@edwardfoyle edwardfoyle added feature-request New feature or request needs-product-input Needs non-technical requirements or direction to proceed and removed pending-triage Incoming issues that need categorization transferred Issue was transferred from another Amplify repository labels Dec 22, 2023
@josefaidt josefaidt self-assigned this Jan 3, 2024
@ykethan ykethan added the p4 label Jan 3, 2024
@anbraten
Copy link

anbraten commented Jun 17, 2024

We are having the same issue with a private gitlab instance. We would somehow need a command that does a similar setup to what the "Connect to Github / Gitlab repo" button is doing.

What is the current state of this issue? Are there any plans to support manual creation of projects?

@moleCuleFFF
Copy link

+1 This is a blocker for me to upgrade from Gen 1 to Gen 2.

@ykethan ykethan removed the p4 label Aug 27, 2024
@ykethan ykethan added console Issues related to Amplify console UI/UX backend-cli Issue is related to Amplify backend CLI labels Sep 26, 2024
@abarke
Copy link

abarke commented Sep 27, 2024

Really need this issue solved or GitLab EE support... either would suffice. Right now im using my sandbox for building the app locally then host manually on Amplify. At least that works 😅

Here are a few suggestions/thoughts: #2056 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend-cli Issue is related to Amplify backend CLI console Issues related to Amplify console UI/UX feature-request New feature or request needs-product-input Needs non-technical requirements or direction to proceed
Projects
None yet
Development

No branches or pull requests

9 participants