Amplify-cli: Support multiple hosting

Created on 12 Aug 2019  路  14Comments  路  Source: aws-amplify/amplify-cli

I am trying to add another hosting to my current repository, but I am getting below error

Error: Hosting is already fully enabled.

It would nice if Amplify supports multiple hosting so that we can add/remove/update multiple sites

feature-request hosting

Most helpful comment

hi !

Is multiple hosting in the roadmap ? We also feel that the Amplify Console does not meet our needs in this case.

Thank you !

All 14 comments

@hoang-innomizetech Amplify has support for multiple environments if youre looking for that. The CLI is project specific for an environment - so I'm not sure if I get the use-case. Could you pleasep rovide more details?

@hoang-innomizetech you can also use Amplify Console to host your frontends: https://console.amplify.aws

@kaustavghosh06 I wanted to configure multiple apps per a Monorepo. For example

  • app1.domain.com point to app1.domain.com bucket
  • app2.domain.com point to app2.domain.com bucket

All the above app should have its environments such as prod, staging or dev.

@swaminator our requirement is to configure multiple apps per Monorepo so that we can implement the auto-deployment solution

@hoang-innomizetech At this moment the CLI doesn't support mono-repos and multiple apps with one Amplify CLI project.

@kaustavghosh06 yeah, I know that Amplify doesn't support it and asking for help.

Does anyone has any idea to use Amplify for hosting multiple apps per mono-repos?

@hoang-innomizetech you can do that with the Amplify Console. You can connect the same repo to different apps, so you could have a React, Angular, Vue app all created from the same repo.

@swaminator We don't want to setup apps manually on AWS console. However, I found another approach to setup hosting by using Serverless Website Component

@hoang-innomizetech the service is named Amplify Console so can be confusing. But you can use Amplify's hosting offering via the AWS CLI, CloudFormation, or any of the AWS SDKs. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Amplify.html
https://docs.aws.amazon.com/cli/latest/reference/amplify/index.html

hi !

Is multiple hosting in the roadmap ? We also feel that the Amplify Console does not meet our needs in this case.

Thank you !

This featured is greatly needed please!!!!!

@swaminator We don't want to setup apps manually on AWS console. However, I found another approach to setup hosting by using Serverless Website Component

source?

+1

+1

Was this page helpful?
0 / 5 - 0 ratings