Prepare the Environment

Create an environment in the cloud for your Apache Tomcat server infrastructure.

Create a Compartment

Compartments organize and isolate your cloud resources. When you work with resources in the console, you must choose which compartment to work in. Users can work in compartments they have permission to access.

You must have administrator permission to create and delete compartments.

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Open the navigation menu. Under Governance and Administration, go to Identity and click Compartments.
  3. Click Create Compartment.
  4. In the Create Compartment dialog box enter the following information:
    • Name: Enter a name that is unique across all compartments in your tenancy (maximum 100 characters, including letters, numbers, periods, hyphens, and underscores).
    • Description: (Optional) Enter a description.
    • Parent Compartment: Select a parent compartment.
    • Tags: (Optional) Enter tags to organize and list resources based on your business needs.
  5. Click Create Compartment.

Install Terraform

Terraform is a third-party tool that you can use to efficiently provision and manage resources in Oracle Cloud Infrastructure.

On UNIX-like or Linux systems, including Oracle Linux, you can install Terraform by downloading and extracting the Terraform package for your operating system.

  1. Go to the Terraform Downloads page.
    Alternatively, install tfswitch. The tfswitch tool enables you to select the Terraform version of your choice.
  2. Locate and download the appropriate package depending on your operating system.
  3. Extract the package to the path /usr/local/bin/.
    You can extract Terraform to any other directory on your local host. Ensure that the directory is included in the PATH variable.
    Terraform is installed and ready to use.
  4. Verify the installation.
    terraform -v
    The Terraform version is displayed.