https://github.com/oracle-quickstart/oci-nginx
Terraform module to deploy Nginx on Oracle Cloud Infrastructure (OCI)
https://github.com/oracle-quickstart/oci-nginx
cloud nginx oci oracle oracle-led terraform
Last synced: 12 days ago
JSON representation
Terraform module to deploy Nginx on Oracle Cloud Infrastructure (OCI)
- Host: GitHub
- URL: https://github.com/oracle-quickstart/oci-nginx
- Owner: oracle-quickstart
- License: upl-1.0
- Archived: true
- Created: 2019-05-17T01:15:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T07:54:23.000Z (about 1 year ago)
- Last Synced: 2025-02-19T21:12:48.647Z (2 months ago)
- Topics: cloud, nginx, oci, oracle, oracle-led, terraform
- Language: HCL
- Homepage:
- Size: 108 KB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oci-quickstart-nginx
These are Terraform modules that deploy [Nginx](https://www.nginx.com/) on [Oracle Cloud Infrastructure (OCI)](https://cloud.oracle.com/en_US/cloud-infrastructure).## About
The Oracle Cloud Infrastructure Nginx Terraform Module provides an easy way set up Nginx server(s) on Oracle Cloud Infrastructure with or without Oracle Cloud Infrastructure Local Balancer with multiple backends, health checks, listeners, and other features, using sensible defaults and a simplified interface. For information about Oracle Cloud Infrastructure Local Balancer, see [Overview of Load Balancing](https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm).## Prerequisites
1. [Download and install Terraform](https://www.terraform.io/downloads.html) (v0.11.8 or later)
2. [Download and install the Oracle Cloud Infrastructure Terraform Provider](https://github.com/oracle/terraform-provider-oci) (v3.5.0 or later)## How to Use the Module
The following example```hcl
module "nginx" {
source = "../"
compartment_id = "${var.compartment_id}"
vcn_ocid = "${var.vcn_ocid}"
bastion_subnet = "${var.bastion_subnet}"
bastion_shape = "${var.bastion_shape}"
bastion_host_display_name = "${var.bastion_host_display_name}"
bastion_ssh_authorized_keys = "${var.bastion_ssh_authorized_keys}"
bastion_ssh_private_key = "${var.bastion_ssh_private_key}"
server_count = "${var.server_count}"
server_subnet_ids = "${var.server_subnet_ids}"
server_display_name = "${var.server_display_name}"
server_shape = "${var.server_shape}"
server_image_id = "${var.server_image_id}"
server_http_port = "${var.server_http_port}"
server_ssh_authorized_keys = "${var.server_ssh_authorized_keys}"
server_ssh_private_key = "${var.server_ssh_private_key}"
ssl_cert_file_path = "${var.ssl_cert_file_path}"
ssl_cert_key_file_path = "${var.ssl_cert_key_file_path}"
}
```**Following are arguments available to the Nginx module:**
Argument | Description
--- | ---
server_http_port | The http port of the nginx server(s).
compartment_id | Unique identifier (OCID) of the compartment in which to create the Nginx server(s).
bastion_host_display_name | The display name of the bastion host instance.
bastion_image_id | The Unique identifier (OCID) of the image which will be used to create the bastion host.
vcn_ocid | Unique identifier (OCID) of the VCN in which to create the Nginx server(s).
bastion_subnet | The Unique identifier (OCID) of the subnet which the bastion host will be created.
bastion_ssh_authorized_keys | The path of public SSH key for the bastion host.
bastion_ssh_private_key | The path of private SSH key to access bastion instance
bastion_shape | The shape for the bastion host instance.
server_display_name | The display name of the nginx server(s).
server_image_id | The Unique identifier (OCID) of the image which will be used to create the nginx server(s).
server_subnet_ids | The list of the Unique identifiers (OCIDs) of the subnet in which to create the nginx server(s).
server_assign_public_ip | Whether the VNIC of the nginx server(s) should be assigned a public IP address.
server_count | The count of the nginx server(s) to be created.
server_shape | The shape for the nginx server instance(s).
server_ssh_authorized_keys | The path of public SSH key for the nginx server(s).
server_ssh_private_key | The path of private SSH key to access the nginx server(3)
server_https_port | The https port for the nginx server
folder_path_for_ssl_cert_files | The folder path on nginx server which for saving the ssl cert files
ssl_cert_file_path | The path of the ssl cert file
ssl_cert_key_file_path | The path of the ssl cert private key file