Skip to content

How to move to production / change region with copilot? #2331

@gtamas

Description

@gtamas

@efekarakus

Our app is soon to be deployed to production. It's an ECS app which consists of 7 Backend services and 3 Load Balanced Web Services.

Currently the app exists in the Bahrain region, but many AWS services (most importantly CodeDeploy) are not available here. So we have decided to move the app to a different region. Question is, how should we do this? My understanding is that we have to do the following:

  • Create another app in the new region
  • Create the app using the --domain flag, so we can specify our domain name
  • Create test and prod environments.
  • Deploy our backend / web services using the new app (--app flag)

Is this correct?

I'm not sure how to handle the prod deployment with copilot.

  • Copilot will create URLs like https://{service}.{env}.{app}.mydomain.com. This is fine for testing, but what about prod?
    We want to use the following URLs in production:

https://admin.domain.com (web service, admin frontend)
https://api.domain.com (another web service, reverse proxy)
http(s)://www.domain.com and http(s)://domain.com (web service, main app frontend)

How can I achieve this? Should I follow the steps you described here?
#2071

  • What about the feature you mentioned:
http:
  alias: api.mydomain.com

Is this available or not yet?

  • In order to be able to use CodeDeploy and other services, the app created with copilot will be located in the eu-west-1 region. However, we would like to keep the rest (backend services, web services) in Bahrain region. How can I deploy a service to a specific region? I can't see any flags for this in copilot.

Please help us with these questions.

Thanks advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceIssue requesting guidance or information about usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions