This architecture is used to provision the infrastructure components for a typical Oracle Commerce installation in Oracle Cloud Infrastructure.
The load balancers have only been configured for http. If https is needed, it can be configured post deployment. A Dynamic Routing Gateway will need to be provisioned and attached to the Virtual Cloud Network (VCN) deployed in this code, if you plan to connect on-premises network to this infrastructure.
The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry. For more information on how to get started view the documentation and setup guide.
Now, you'll want a local copy of this repo. You can make that with the commands:
git clone https://github.com/oracle-quickstart/oci-arch-atg
ls
First off, you'll need to do some pre-deploy setup. That's all detailed here.
Secondly, create a terraform.tfvars
file and populate with the following information:
# Authentication
tenancy_ocid = "<tenancy_ocid>"
user_ocid = "<user_ocid>"
fingerprint = "<finger_print>"
private_key_path = "<pem_private_key_path>"
# SSH Keys
ssh_public_key = "<public_ssh_key_path>"
bastion_ssh_public_key = "<public_ssh_key_path>"
# Region
region = "<oci_region>"
# Compartment
compartment_ocid = "<compartment_ocid>"
# Object Storage
bucket_namespace = "<enter_tenancy_name_here>"
# Password for Autonomous Database
autonomous_database_admin_password="<enter_password>"
Deploy:
terraform init
terraform plan
terraform apply
When you no longer need the deployment, you can run this command to destroy it:
terraform destroy