Terraform for Oracle Java Cloud Service (JCS)
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:
- Learn about creating a secure network topology on Oracle Cloud Infrastructure
- Learn about setting up the infrastructure and platform resources for Java EE applications
- Create a multitier network topology on Oracle Cloud Infrastructure
The code is based on following Oracle Terraform Modules:
- Oracle Cloud Infrastructure Terraform Modules for Identity and Access Management
- Oracle Cloud Infrastructure Default VCN Terraform Module
- Terraform Examples for Oracle Cloud
- Terraform for Oracle Container Engine
Thanks a lot to all who have contributed with those terraform code examples!!
- Download and install Terraform (v0.11+).
- Configure your OCI account to use Terraform
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/
$ 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.
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
This section is under construction.
This section is under construction.
Thanks to all the Oracle folks that are constantly developing the terraform modules/examples and documenting the Oracle Cloud Solutions