Skip to content

Terraform code for an Oracle Java Cloud Service (JCS) demo deployment using Oracle Cloud Infrastructure (OCI) as IaaS backend

License

Notifications You must be signed in to change notification settings

snypher/terraform-oci-jcs

Repository files navigation

About

Terraform code that provisions a multitier topology demo environment for Oracle Java Cloud Service (JCS) using Oracle Cloud Infrastructure (OCI) as the IaaS platform. The infrastructure schema's database for the JCS will reside in an OCI virtual DB System.

The deployed multi-layer network topology is based on the following Oracle Cloud Solutions:

The code is based on following Oracle Terraform Modules:

Thanks a lot to all who have contributed with those terraform code examples!!

Pre-reqs

  1. Download and install Terraform (v0.11+).
  2. Configure your OCI account to use Terraform

Environment variables

Ensure you set proxy environment variables if you're running behind a proxy

$ export http_proxy=http://<address_of_your_proxy>.com:80/
$ export https_proxy=http://<address_of_your_proxy>:80/

Quickstart

$ git clone https://orahub.oraclecorp.com/kevin_josue_zambrano/terraform-oci-multitier.git
$ cd terraform-oci-multitier
$ vi terraform.tfvars
  • Set the following mandatory variables in terraform.tfvars:

    • tenancy_ocid
    • tenancy
    • user_ocid
    • private_key_path
    • fingerprint
    • home_region
    • region
    • oracle_service_label
    • oracle_service_ocid
    • db_system_admin_password
    • db_system_ssh_public_keys
    • identity_user
    • identity_password
    • identity_service_id
    • java_endpoint
    • jcs_ssh_public_key_file
    • jcs_admin_password
  • Optionaly, modify the default values included in file terraform.tfvars for other variables like vcn_cidr, subnet_app_cidr, db_system_database_edition, jcs_bring_your_own_license, et all.

  • For references about the supported values on each variable, please consult the documentation link included in the terraform.tfvars file comments.

Deploy JCS Demo

Initialize Terraform:

$ terraform init

View what Terraform plans do before actually doing it:

$ terraform plan

Compare what will be provisioned in terms of compartments, vcn, subnets, dbsystem and jcs vs what is available under your service limits of the account in your region and the ADs and modify accordingly.

Create OCI resources (iam, network, object storage, dbsystem) and JCS:

$ terraform apply

Features

This section is under construction.

Related Docs

This section is under construction.

Acknowledgement

Thanks to all the Oracle folks that are constantly developing the terraform modules/examples and documenting the Oracle Cloud Solutions

About

Terraform code for an Oracle Java Cloud Service (JCS) demo deployment using Oracle Cloud Infrastructure (OCI) as IaaS backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages