{"id":51116504,"url":"https://github.com/oracle-devrel/terraform-oci-arch-wordpress-matomo","last_synced_at":"2026-06-24T22:30:33.484Z","repository":{"id":42080134,"uuid":"475942941","full_name":"oracle-devrel/terraform-oci-arch-wordpress-matomo","owner":"oracle-devrel","description":"terraform-oci-arch-wordpress-matomo","archived":false,"fork":false,"pushed_at":"2025-01-21T20:25:18.000Z","size":2292,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-21T15:50:45.588Z","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-03-30T15:34:01.000Z","updated_at":"2025-01-21T20:25:19.000Z","dependencies_parsed_at":"2024-05-16T17:31:30.471Z","dependency_job_id":"148b1a6a-3d8e-4051-990e-48c2b8c0ee31","html_url":"https://github.com/oracle-devrel/terraform-oci-arch-wordpress-matomo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/oracle-devrel/terraform-oci-arch-wordpress-matomo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-wordpress-matomo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-wordpress-matomo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-wordpress-matomo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-wordpress-matomo/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-wordpress-matomo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-wordpress-matomo/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:32.161Z","updated_at":"2026-06-24T22:30:33.467Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-oci-arch-wordpress-matomo\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`, and `instances`.\n\n- Quota to create the following resources: 1 VCN, 2 subnets, 1 Internet Gateway, 1 NAT Gateway, 2 route rules, and 3 compute instance (WordPress CMS VM, MySQL VM, Matomo VM).\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## Reference Archirecture\n\nFor details of the architecture, see [_Set up WordPress with MySQL Database and Matomo Analytics using Arm-based Ampere A1 Compute resources_](https://docs.oracle.com/en/solutions/wordpress-arm-based-oci/index.html)\n\n## Architecture Diagram\n\n![](./images/architecture-deploy-wordpress-mysql-matomo.png)\n\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-wordpress-matomo/releases/latest/download/terraform-oci-arch-wordpress-matomo-stack-latest.zip)\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-wordpress-matomo.git\n    cd terraform-oci-arch-wordpress-matomo\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\n# Region\nregion = \"\u003coci_region\u003e\"\n\n# Availablity Domain \navailablity_domain_name = \"\u003cavailablity_domain_name\u003e\"\n\n# Compartment\ncompartment_ocid = \"\u003ccompartment_ocid\u003e\"\n\n# MySQL DBSystem Admin Password \nadmin_password = \"\u003cadmin_password\u003e\"\n\n# WordPress MySQL Database User Password\nwp_password = \"\u003cwp_user_password\u003e\"\n\n# WordPress Themes to be installed by WP-CLI (minimum 1 theme)\nwp_themes = \"lodestar,twentysixteen\"\n\n# WordPress Plugins to be installed by WP-CLI (minimum 1 plugin)\nwp_plugins = \"hello-dolly,elementor\"\n\n# WordPress Site Title\nwp_site_title = \"\u003cWordPress_site_title\u003e\"\n       \n# WordPress WP-Admin User\nwp_site_admin_user = \"\u003cwp-admin_user\u003e\"\n\n# WordPress WP-Admin Password\nwp_site_admin_pass = \"\u003cwp-admin_password\u003e\"\n\n# WordPress WP-Admin e-mail address\nwp_site_admin_email = \"\u003cwp-admin_email\u003e\"\n\n# matomo_password\nmatomo_password = \"\u003cmatomo_password\u003e\"\n\n````\n\n### Create the Resources\nRun the following commands:\n\n    terraform init\n    terraform plan\n    terraform apply\n\n\n### Testing your Deployment\nAfter the deployment is finished, you can access WP-Admin by picking wordpress_wp-admin_url output and pasting into web browser window. You can also verify initial content of your blog by using wordpress_public_ip:\n\n````\nwordpress_wp-admin_url = http://193.122.198.19/wp-admin/\nwordpress_public_ip = 193.122.198.19\n`````\n\nYou should also finish Matomo configuration by going to matomo_url from output and using mysql related outputs (mysql_instance_public_ip, matomo_username, matomo_password, matomo_schema):\n\n````\nmatomo_url = \"http://193.122.131.150/analytics/matomo/\"\nmysql_instance_ip = \"10.0.1.2\"\nmatomo_username = \"matomo\"\nmatomo_password = \"***********\"\nmatomo_schema = \"matomo\"\n`````\n\n![](./images/matomo_wizard1.png)\n\n![](./images/matomo_wizard2.png)\n\n![](./images/matomo_wizard3.png)\n\n![](./images/matomo_wizard4.png)\n\n![](./images/matomo_wizard5.png)\n\n![](./images/matomo_wizard6.png)\n\n![](./images/matomo_wizard7.png)\n\n![](./images/matomo_wizard8.png)\n\n![](./images/matomo_wizard9.png)\n\n![](./images/matomo_wizard10.png)\n\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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-wordpress-matomo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-wordpress-matomo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-wordpress-matomo/lists"}