Elastic Path Account Management Deployment Guide

Initializing the Account Management User Interface

Initializing the Account Management User Interface

  • Ensure that all requirements described in the Requirements section are met.
  • Ensure that you have access to the machine with yarn and npm installed on it.
  • Ensure that you have access to the account-management-1.0.0.zip file in the Elastic Path public Nexus repository.
  • Ensure that the Keycloak initialization is complete and the access details and client id are available.
  1. Extract the files in the account-management-1.0.0.zip file.
    The zip file should extract its contents including the folder `account-management-app`, which contains the code used in this step.
  2. Build the docker image (using `account-management-app/docker/Dockerfile` on your local machine.
  3. Push the Docker image to Amazon Elastic Container Registry (ECR).
  4. Deploy the Docker image in Amazon Elastic Container Service (ECS) with the following environment variables:
    Parameter Value
    INSTANCE_URL The Account Management user interface URL.
    KEYCLOAK_LOGIN_URL

    The Keycloak URL to which the storefront redirects when you login.

    For example, https://<KEYCLOAKURL>/auth/realms/<REALM ID>/protocol/openid-connect/auth.

    KEYCLOAK_LOGOUT_URL

    The Keycloak URL to which the storefront redirects when you logout.

    For example,https://<KEYCLOAKURL>/auth/realms/<REALM ID>/protocol/openid-connect/logout.

    KEYCLOAK_CLIENT_ID eam
    COMMERCE_MANAGER_URL The URL for the Commerce Manager instance.
    ADMIN_API_URL The URL for the Account Management API,(e.g., https://<ACCOUNT-MANAGEMENT-API>/)
  5. Create and configure a new Amazon Elastic Load Balancer (ELB) with the Amazon ECS service and appropriate SSL certificates.