Creating a project in IBM Cloud
Setting up a project on IBM Cloud involves using the migration plan, configuring identification and resources, and verifying the project details. These steps help ensure that you have all the necessary information to smoothly create and manage your project environment.
Before you begin
For more information, see the Prerequisites for creating a project in IBM Cloud .
We recommend the optional IBM Cloud Essential Security and Observability Services stack, please see IBM Cloud Essential Security and Observability Services stack .
You can create a migration project in IBM Cloud, deploy the application, deploy any IBM MQ or Db2 dependencies that the application requires, and configure the associated connections by following these instructions:
Starting the project in IBM Cloud
Starting a migration project in IBM Cloud begins with reviewing your migration plan, which outlines necessary steps like the following tasks:
-
Configuring IBM MQ
-
Preparing database migrations
-
Provisioning Enterprise Application Service
The AMA plan’s visualization diagram shows how your application interacts with these resources, helping ensure clarity before you proceed.
-
Open the migration plan overview for reviewing key details, including the total estimated effort and guidance on provisioning services, updating applications, and configuring dependencies.
-
Select the Migration Plan for your application.
-
The visualization diagram shows how the application interacts with queues and databases and the plan outlines the necessary steps and configurations, including provisioning Liberty, configuring MQ, and migrating the database.
-
-
Click Start in IBM Cloud.
-
Complete the fields in Get started in IBM Cloud.
-
Click Create.
The Project is successfully created in IBM Cloud and configured to match your migration plan.
Viewing the project
To view the created project details and proceed with configurations or to review your project.
-
Click View your project in the popup window.
-
In the project that opens in IBM Cloud, click the Configuration tab and continue your configuration.
Deploying MQ SaaS instances
IBM MQ SaaS configuration is essential for enabling secure and efficient messaging between applications during migration. It involves integrating credentials, service bindings, and environment settings to ensure seamless communication and reliability. Proper configuration supports streamlined operations and enhances application connectivity in the cloud environment.
Before you begin
Complete the prerequisites list .
Initializing an MQ SaaS deployment
To initialize an MQ SaaS deployment, complete the following steps:
-
In the IBM Cloud home page, expand the navigation menu and select Projects.
-
Select the project you want to configure.
-
Go to the Configurations tab, expand Stack, and locate the MQ SaaS instance.
-
In the Draft Status, click Edit.
-
In the Configure section, click Required and enter the value for
existing_mq_capacity_crn
, which you can find by following these steps:-
Expand the navigation menu and select Resource List > Integration.
-
Select the row for your Reserved Capacity Instance (avoid clicking on the name itself).
-
In the pop-out panel, copy the value of CRN.
-
-
Go to the Optional tab and provide the following details:
-
A unique value for deployment_name.
-
Your email address in the user_email field.
-
Update the application_name field, ensuring it does not contain underscores.
-
-
This step is optional and is only needed if you are using a secrets manager: Enter the values for existing_secrets_manager_crn and existing_secret_group_id.
Follow these steps to get the values for existing_secrets_manager_crn and existing_secret_group_id:
-
Expand the navigation menu and select Resource List > Security.
-
Select the row for your Secrets Manager (avoid clicking on the name itself).
-
In the pop-out panel:
-
Copy the value of CRN into existing_secrets_manager_crn.
-
copy the value of GUID into existing_secret_group_id.
-
-
-
Click Save.
-
Click Validate.
-
In the Approval pending field, enter information about the approval and then click Approve.
-
Click Deploy. The deployment process might take a few minutes, after which the MQ SaaS instance is deployed.
Note: Each MQ SaaS deployment requires a unique Queue Manager name.
Connecting to MQ SaaS instances
To connect to deployed MQ instances, add configuration details to your Enterprise Application Service deployment:
-
In your source repository, open the
server.xml
file. -
Set the correct values for
userName
andpassword
that were left blank previously:-
The values for
userName
andpassword
must be generated. Follow these steps to generate theuserName
andpassword
:-
Expand the navigation menu and select Resource List > Integration.
-
Click the name you entered for
deployment_name
in MQ SaaS. -
Go to the Application credentials tab.
-
Click Add to create credentials.
-
Enter a name, and then click Add and generate API key.
- Use this name as the
userName
inserver.xml
.
- Use this name as the
-
Copy the generated API key and use it as the
password
.
-
-
-
Set the correct value for the
hostname
in the MQ connection factory tag:-
Retrieve the hostname as follows:
-
Expand the navigation menu and select Resource List > Integration.
-
Click the name you entered for
deployment_name
in MQ SaaS. -
Click the name again to open details.
-
Copy the value listed for
hostname
.
-
-
-
Commit your changes.
-
Go to your configuration repository.
-
Open the
environment.yaml
file and uncomment theservices
section. -
Update the following values:
-
crn
: Use the MQ CRN value entered for MQ SaaS. -
name
: Enter an appropriate name. -
type
: Entermq
.
-
-
Commit these changes.
-
After the build for your source code changes is complete.
-
Update your version in the configuration repository.
-
Deploy your Enterprise Application Service. It will now connect to your MQ instance.
-
Note: MQ SaaS deployments are limited to 2 channels and 3 queues with preassigned names. The server.xml
from Application Modernization Accelerator has been updated
with these preassigned names.
Note: If more than 3 queues are required for a queue manager, additional queues must be created and configured manually. For more information, see the IBM MQ SaaS documentation.
Deploying Db2 SaaS instances
IBM Db2 SaaS provides a secure and scalable solution for database management in the cloud, enabling seamless integration with other IBM Cloud services. Proper configuration ensures reliable performance and efficient connectivity, supporting smooth migration and robust application operations. These steps ensure that the Db2 service integrates securely and efficiently with other components in your IBM Cloud environment.
Initializing a Db2 SaaS deployment
To initialize a Db2 SaaS deployment, complete the following steps:
-
In the IBM Cloud home page, expand the navigation menu and select Projects.
-
Select the project you want to configure.
-
Go to the Configurations tab, expand the Stack, and locate the Db2 SaaS instance.
-
Under Draft status, click Ready to validate.
-
In the Approval pending field, enter information about the approval and then click Approve.
-
Click Deploy. The deployment process might take a few minutes, after which the Db2 SaaS instance is deployed.
Connecting to Db2 SaaS instances
To connect to deployed Db2 instances, add configuration to your Enterprise Application Service deployment.
-
In your source repository, open the
server.xml
file. -
Set the correct values for the connection to Db2.
-
Follow these steps to get the connection details for the Db2 database:
-
Expand the navigation menu and select Resource List > Database.
-
Select the name that you configured.
-
In the Service credentials tab, click New credential to create credentials and then click Add.
-
Go to Key Name, expand the collapsible section.
-
Scroll down to locate the
jdbc_url
. From the URL, note the following information:-
Hostname
-
Port number
-
Database Name
-
-
Scroll down to locate authentication. From here, note the following information:
-
Username
-
Password
-
-
-
In the
Datasource
section of theserver.xml
file, add the following information:sslConnection="true"
-
-
Commit your changes.
-
In your configuration repository, open the
environment.yaml
file and uncomment theservices
section if it is commented out. -
Add the following values:
-
crn
: Use the DB2 CRN value.-
You can obtain this by going to Resource List > Database > Icon next to the database instance name.
-
Copy the CRN value.
-
-
Update the environment variables that you obtained from step 3 above.
-
-
Commit these changes.
-
After the build for your source code changes is complete.
-
Update your version in the configuration repository.
-
Deploy your EAS. It will now connect to your Db2 instance.
-
For more information on DB2 on cloud, see IBM Db2 SaaS documentation.
Deploying your application using the Enterprise Application Service
IBM Enterprise Application Service for Java facilitates seamless application management and integration within the IBM Cloud ecosystem. Proper configuration ensures secure connectivity with external services, efficient resource management, and streamlined deployment processes, supporting robust and scalable application operations during migration.
Before you begin
-
Ensure that you have an IBM Cloud account and all the required permissions to manage configurations.
-
Retrieve the Cloud Resource Name (CRN) for the following:
- CRNs of other services (
MQ
,Db2
) to be bound to the application.
- CRNs of other services (
Initializing Enterprise Application Service deployment automation
-
In the IBM Cloud home page, expand the navigation menu and select Projects.
-
Choose the project you wish to configure.
-
Click the Configurations tab, expand the Stack and locate the Enterprise Application Service Deployment Automation instance.
-
Click the options icon and select Edit.
-
Under Configure, click Required.
-
(Optional) Update the plan.
-
Under Draft status, click Validate.
The validation takes a few minutes to complete.
-
In Approval Pending field, enter the text for approval and then click Approve.
-
Click Deploy. Deployment takes a couple of minutes and then the Enterprise Application Service instance is deployed.
Note: Each Enterprise Application Service deployment has a prefix
value, noted in the Required section. This value must be unique for each of your deployments.
Deployment configuration in Enterprise Application Service
To configure the deployment in Enterprise Application Service complete the following steps:
-
Go to Configurations.
-
Select the name of the Enterprise Application Service deployment.
-
Select Outputs and
- Locate the
ease_instance_dashboard_url
value. - Click the link to access the Enterprise Application Service dashboard.
- Locate the
-
Click Install and Configure.
-
Choose the Deploy, and run your application option if you have a an existing application ear file in a repo that you would like to use to deploy to EASeJ.
-
Choose the Build, deploy, and run your application option if you have a code source repository from which you would like to build the application ear file from and then deploy to EASeJ.
-
Follow the on-screen instructions to configure the GitHub source and configuration repositories.
Note: The Application Modernization Accelerator migration bundle provides a pre-configured environment.yaml
file for your application. Replace the existing boilerplate file in your configuration repository with
this pre-configured file.
Confirming the build
To confirm the build, complete the following steps:
-
In the IBM Enterprise Application Service for Java page, expand the navigation menu and select Builds > Release builds.
-
Your first build appears with the commit message Initial commit.
-
When the build completes, additional icons will appear at the end of the row.
-
Click the Deploy to staging icon.
-
Follow the on-screen steps to update your configuration repository.
Updating the server.xml
The migration bundle from Application Modernization Accelerator includes a pre-configured server.xml
file. To make this file compatible with Enterprise Application Service, some manual modifications are necessary.
To update the file and ensure that the application deploys and runs successfully, complete the following steps:
-
Open the
server.xml
file in your source repository. -
Update the references to library files with the following value (for example,
someJar.jar
is an example jar name):-
Replace
${shared.config.dir}/lib/global/someJar.jar
with
${server.config.dir}/lib/someJar.jar
-
-
If your application has MQ dependencies, make the following additional changes:
-
Add the
<feature>
element for SSL support if it is not already present:<feature>ssl-1.0</feature>
-
Update the MQ connection factory tags with these attributes:
transportType="CLIENT" port="443" sslCipherSuite="TLS_AES_128_GCM_SHA256" userName="" password=""
-
Note: The userName
and password
values are provided in a later step during connection configuration.
Validating the configuration
To validate the configuration, complete the following steps:
-
Go to Configuration Jobs > Deployments.
-
Check for errors by clicking on the Job ID.
-
Fix the issues, in the
environment.yaml
file and re-run the validation.
-
-
After validation succeeds, go to Configuration Jobs > Deployments andf review the logs for errors and confirm that service bindings are created successfully.
Testing and validating the deployment
To test and validate the deployment, complete the following steps in the Enterprise Application Service:
-
Select Environments > Staging.
-
check the Application runtime log for errors.
-
Click Actions and select Open Application to validate the deployed application.
-
Add the root context, for example,
/modresorts
, to the application URL to verify accessibility.
-
Note: The application should deploy and run successfully. However, because IBM MQ and IBM Db2 dependencies have not yet been created and configured, the application might not function as expected. These dependencies are addressed
in later steps.