{"id":51116568,"url":"https://github.com/oracle-devrel/terraform-oci-arch-drupal-mds","last_synced_at":"2026-06-24T22:30:37.323Z","repository":{"id":43481631,"uuid":"446848708","full_name":"oracle-devrel/terraform-oci-arch-drupal-mds","owner":"oracle-devrel","description":"terraform-oci-arch-drupal-mds","archived":false,"fork":false,"pushed_at":"2025-01-21T20:15:21.000Z","size":200,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-21T14:55:45.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-devrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-11T14:13:05.000Z","updated_at":"2025-01-21T20:15:25.000Z","dependencies_parsed_at":"2024-05-16T17:29:16.327Z","dependency_job_id":"0ea12b83-8271-48d2-891a-6c41dfc563af","html_url":"https://github.com/oracle-devrel/terraform-oci-arch-drupal-mds","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/oracle-devrel/terraform-oci-arch-drupal-mds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-drupal-mds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-drupal-mds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-drupal-mds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-drupal-mds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-devrel","download_url":"https://codeload.github.com/oracle-devrel/terraform-oci-arch-drupal-mds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-drupal-mds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T22:30:37.240Z","updated_at":"2026-06-24T22:30:37.311Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-oci-arch-drupal-mds\n\n## Reference Architecture\n\nDrupal is one of the most popular content management systems (CMS) available. It is free and open-source, released under the GNU Public License. \n\nDrupal is based on the LAMP stack and provides users and enterprises a scalable and robust architecture, low implementation and maintenance efforts, as well as a large community-led knowledge base. Its setup and usage does not require advanced technical skills. It provides the infrastructure for websites worldwide—ranging from personal blogs to corporate, political, and government sites. It is very extensible and modular, making it useful in a large variety of scenarios.\n\nThis Terraform code spins up one or more Oracle Cloud Infrastructure (OCI) instances after creating the required OCI networking components, deploys Drupal on the instance(s) and creates a MySQL Database System (with High Availability if desired).\n\nFor more details on the architecture, see [_Deploy Drupal CMS on Oracle Linux with MySQL Database Service_](https://docs.oracle.com/en/solutions/drupal-with-mds/)\n\n## Architecture Diagram \n\n### Single-node Architecture (1 Drupal VM, single node MDS)\n\n![](./images/architecture-deploy-drupal-mds_single-node.png)\n\n### Multi-node Architecture (2+ Drupal VMs, shared FSS, Load Balancer and MDS HA)\n\n![](./images/architecture-deploy-drupal-mds_multi-node.png)\n\n## Prerequisites\n\n- Permission to `manage` the following types of resources in your Oracle Cloud Infrastructure tenancy: `vcns`, `internet-gateways`, `route-tables`, `security-lists`, `subnets`, `mysql-family`, and `instances`.\n\n- Quota to create the following resources: 1 VCN, 2 subnets, 1 Internet Gateway, 1 NAT Gateway, 2 route rules, 1 MySQL Database System (MDS) instance, and 1 (or more) compute instance(s) for Drupal.\n\nIf you don't have the required permissions and quota, contact your tenancy administrator. See [Policy Reference](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm), [Service Limits](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm), [Compartment Quotas](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcequotas.htm).\n\n## Deploy Using Oracle Resource Manager\n\n1. Click [![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home\u0026zipUrl=https://github.com/oracle-devrel/terraform-oci-arch-drupal-mds/releases/latest/download/terraform-oci-arch-drupal-mds-stack-latest.zip)\n\n\n    If you aren't already signed in, when prompted, enter the tenancy and user credentials.\n\n2. Review and accept the terms and conditions.\n\n3. Select the region where you want to deploy the stack.\n\n4. Follow the on-screen prompts and instructions to create the stack.\n\n5. After creating the stack, click **Terraform Actions**, and select **Plan**.\n\n6. Wait for the job to be completed, and review the plan.\n\n    To make any changes, return to the Stack Details page, click **Edit Stack**, and make the required changes. Then, run the **Plan** action again.\n\n7. If no further changes are necessary, return to the Stack Details page, click **Terraform Actions**, and select **Apply**. \n\n## Deploy Using the Terraform CLI\n\n### Clone the Module\n\nNow, you'll want a local copy of this repo. You can make that with the commands:\n\n```\n    git clone https://github.com/oracle-devrel/terraform-oci-arch-drupal-mds.git\n    cd terraform-oci-arch-drupal-mds\n    ls\n```\n\n### Prerequisites\nFirst off, you'll need to do some pre-deploy setup.  That's all detailed [here](https://github.com/cloud-partners/oci-prerequisites).\n\nCreate a `terraform.tfvars` file, and specify the following variables:\n\n```\n# Authentication\ntenancy_ocid        = \"\u003ctenancy_ocid\u003e\"\nuser_ocid           = \"\u003cuser_ocid\u003e\"\nfingerprint         = \"\u003cfinger_print\u003e\"\nprivate_key_path    = \"\u003cpem_private_key_path\u003e\"\n\nregion              = \"\u003coci_region\u003e\"\ncompartment_ocid    = \"\u003ccompartment_ocid\u003e\"\n\n# MySQL and Drupal variables\nadmin_password      = \"\u003cMySQL_admin_password\u003e\"\ndrupal_password     = \"\u003cDrupal_user_password\u003e\"\nnumberOfNodes       = 1 # value 2+ for multinode scenario will be deployed inluding LB \u0026 FSS.\n````\n\n### Create the Resources\nRun the following commands:\n\n    terraform init\n    terraform plan\n    terraform apply\n\n### Destroy the Deployment\nWhen you no longer need the deployment, you can run this command to destroy the resources:\n\n    terraform destroy\n\n## Deploy as a Module\nIt's possible to utilize this repository as remote module, providing the necessary inputs:\n\n```\nmodule \"oci-arch-drupal-mds\" {\n  source                        = \"github.com/oracle-devrel/terraform-oci-arch-drupal-mds\"\n  tenancy_ocid                  = \"\u003ctenancy_ocid\u003e\"\n  user_ocid                     = \"\u003cuser_ocid\u003e\"\n  fingerprint                   = \"\u003cfinger_print\u003e\"\n  private_key_path              = \"\u003cprivate_key_path\u003e\"\n  region                        = \"\u003coci_region\u003e\"\n  compartment_ocid              = \"\u003ccompartment_ocid\u003e\"\n  admin_password                = \"\u003cMySQL_admin_password\u003e\"\n  drupal_password               = \"\u003cDrupal_user_password\u003e\"\n  numberOfNodes                 = 1 \n}\n```\n\n### Testing your Deployment\nAfter the deployment is finished, you can access and configure Drupal by picking drupal_home_URL from the output and pasting into web browser window.\n\n````\ndrupal_home_URL = http://193.122.198.20/\n`````\n\n## Contributing\nThis project is open source.  Please submit your contributions by forking this repository and submitting a pull request!  Oracle appreciates any contributions that are made by the open source community.\n\n## Attribution \u0026 Credits\nThis repository was initially inspired on the materials found in [lefred's blog](https://lefred.be/content/deploying-drupal-in-oci-using-mds-the-easy-way/). One of the enhancements done to the materials in question was the adoption of the [OCI Cloudbricks MySQL module](https://github.com/oracle-devrel/terraform-oci-cloudbricks-mysql-database).\nThat being the case, we would sincerely like to thank:\n- Frédéric Descamps (https://github.com/lefred)\n- Denny Alquinta (https://github.com/dralquinta)\n\n## License\nCopyright (c) 2024 Oracle and/or its affiliates.\n\nLicensed under the Universal Permissive License (UPL), Version 1.0.\n\nSee [LICENSE](LICENSE.txt) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-drupal-mds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-drupal-mds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-drupal-mds/lists"}