Skip to content

Latest commit

 

History

History
89 lines (63 loc) · 5.47 KB

12-Prepare-Deployment.md

File metadata and controls

89 lines (63 loc) · 5.47 KB

Prepare Your SAP BTP Subaccount for Deployment

When you want to deploy your SAP BTP application to a subaccount, first, you need to prepare a few things, for example, you need to assign the required services and enable SAP BTP Cloud Foundry runtime.

Set Up the SAP BTP Subaccount

  1. In the SAP BTP cockpit (global account), create a subaccount to host the application runtime (in this example, the data center of Amazon Web Services (AWS) and Europe (Frankfurt) as region are used).

  2. Optional: Assign the subaccount to a directory as a parent.

  3. Open Entity Assignments and assign quotas for the following entities to your subaccount you want to deploy the application to:

    • SAP BTP Cloud Foundry runtime (3 units of application runtime)

      Note: If the value help doesn't offer an item referring to Cloud Foundry, select Application runtime. Save your changes and the name of the list item changes to Cloud Foundry. In your Test, Develop, Deploy (TDD) environment, this entitlement may already have been added by default.

      • As Plan, select standard-edition (Application).
    • SAP HANA Cloud (1 unit)
      • As Plan, select hana.
    • SAP HANA Schemas & HDI Containers
      • As Plan, select hdi-shared.
    • SAP Authorization and Trust Management service (1 unit)
      • As Plan, select broker.
    • SAP Build Work Zone
      • As Plan, select standard (Application).

    The relevant entity assignments are selected by default when the subaccount is created (no action required):

    • Service Manager, service plan container
    • HTML5 Application Repository Service, service plans app-runtime and app-host

Maintain Provider Subaccount Administrators

In the SAP BTP cockpit, maintain the application administrators:

  1. Open the menu item Security - Users and enter the users.
  2. Assign the role collection Subaccount Administrators to the users that take on the role of subaccount administrators.

Enable SAP BTP Cloud Foundry Runtime

In the SAP BTP cockpit (provider subaccount), create an SAP BTP Cloud Foundry runtime space to host the database and the runtime:

  1. Go to Overview in the subaccount and choose Enable Cloud Foundry. Enter the following information:

    • As Plan, select standard.
    • As Landscape, select cf-eu10.
    • As Instance Name, enter poetryslams.
    • As Org Name, enter a name, for example, an abbreviation for you as a partner and the solution you want to host.

      Note: When choosing the org name, make sure that it meets the following requirements:

      • It must not exceed 12 characters.
      • Use a unique name.
      • Include an element that identifies you as a partner.
      • Use only lower-case letters.

      Here’s why: At a later stage, you will use SAP Custom Domain service to create a server certificate for your application. This certificate will be valid for the application URL, which has the value {org name}-{space name}-poetry-slams.{domain}. The certificate requires that this URL doesn’t exceed 64 characters. The domain in the eu10 landscape is cfapps.eu10-004.hana.ondemand.com. With a 3-letter name for the space (for example, app), this leaves only 12 characters for the org name. At the same time, the org name must be unique and must, therefore, include an element that identifies you as a partner. Also, use only lower-case letters in the org name to avoid routing issues.

      For example: For Poetry Slam Manager delivered by SAP, it could be sap-psm.

  2. Choose Create.

  3. Choose Create Space and enter a name, for example, app as Space Name.

  4. Keep the standard roles and add Cloud Foundry org members and Cloud Foundry space members.

Create an SAP HANA Cloud Database

  1. In the SAP BTP cockpit (subaccount), in the left navigation pane, go to Cloud Foundry and Spaces. Open the desired space.
  2. Go to SAP HANA Cloud.
  3. To create an SAP HANA Cloud database,
    • Choose CF Organization + Space.
    • As Instance Name, enter poetryslams-db.
    • Enter a password.
    • Choose Create and save your changes.

Subscribe to SAP Build Work Zone Application

  1. In the SAP BTP cockpit (subaccount), open the Service Marketplace and select the service SAP Build Work Zone.

  2. Create a subscription of SAP Build Work Zone with

    • Service: SAP Build Work Zone, standard edition
    • Plan: standard
  3. In the left navigation pane, open Security > Users and add the role collection Launchpad_Admin to your user.

Note: SAP Build Work Zone provides a managed application router, which is used to manage application authentication and tokens. Before you deploy your application, subscribe to SAP Build Work Zone to ensure that the web app can be published as an HTML5 application.

Develop, Test, and Deploy Your Application

Now, you can deploy your application:

Looking for more information? Read up on testing, tracing, debugging and check out the guided tour that shows you the functionality of Poetry Slam Manager.