{"id":51116575,"url":"https://github.com/oracle-devrel/terraform-oci-arch-spring-boot","last_synced_at":"2026-06-24T22:30:37.736Z","repository":{"id":45026426,"uuid":"431605666","full_name":"oracle-devrel/terraform-oci-arch-spring-boot","owner":"oracle-devrel","description":"terraform-oci-arch-spring-boot","archived":false,"fork":false,"pushed_at":"2025-01-21T20:13:37.000Z","size":346,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-21T14:40:37.661Z","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":"2021-11-24T19:31:11.000Z","updated_at":"2026-01-04T07:05:30.000Z","dependencies_parsed_at":"2024-05-16T17:28:57.363Z","dependency_job_id":"f1f2dea6-b155-4086-81a6-107b4163c2ee","html_url":"https://github.com/oracle-devrel/terraform-oci-arch-spring-boot","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-spring-boot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-spring-boot/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-spring-boot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-spring-boot/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.673Z","updated_at":"2026-06-24T22:30:37.731Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-oci-arch-spring-boot\n\nSpringBoot is an open source, Java-based framework that you can use to create production grade applications. SpringBoot simplifies the deployment of applications with minimal configuration and customization and includes third-party libraries to streamline the process.\n\nMySQL Database service is a managed Database service on Oracle Cloud Infrastructure. In this deployment we will deploy 3 node cluster(app server) along with a Load Balancer and MySQL Database service.\n\n## Terraform Provider for Oracle Cloud Infrastructure\nThe OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry. \nFor more information on how to get started view the [documentation](https://www.terraform.io/docs/providers/oci/index.html) \nand [setup guide](https://www.terraform.io/docs/providers/oci/guides/version-3-upgrade.html).\n\n* [Documentation](https://www.terraform.io/docs/providers/oci/index.html)\n* [OCI forums](https://cloudcustomerconnect.oracle.com/resources/9c8fa8f96f/summary)\n* [Github issues](https://github.com/terraform-providers/terraform-provider-oci/issues)\n* [Troubleshooting](https://www.terraform.io/docs/providers/oci/guides/guides/troubleshooting.html)\n\n## Prerequisites\n\n- Permission to `manage` the following types of resources in your Oracle Cloud Infrastructure tenancy: `vcns`, `internet-gateways`, `route-tables`, `network-security-groups`, `subnets`, and `instances`.\n\n- Quota to create the following resources: 2 VCN, 4 subnets, 1 Internet Gateway, 2 route rules,  and 4 compute instance.\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- OCID of compartments with Security Zone and without Security Zone enabled\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-spring-boot/releases/latest/download/terraform-oci-arch-spring-boot-stack-latest.zip)\n\n\nIf 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 and initialize \n\nYou'll want a local copy of this repo. You can make that with the commands:\n\n    git clone https://github.com/oracle-devrel/terraform-oci-arch-spring-boot\n    cd terraform-oci-arch-spring-boot\n    ls\n\nYou'll need to do some pre-deploy setup.  That's all detailed [here](https://github.com/cloud-partners/oci-prerequisites).\nInitialize them in  `terraform.tfvars` file and populate with the following information:\n\n```\n# Authentication\ntenancy_ocid         = \u003c\"\"\u003e\nuser_ocid            = \u003c\"\"\u003e\nfingerprint          = \u003c\"\"\u003e\nprivate_key_path     = \u003c\"\"\u003e\n# SSH Keys\nssh_public_key  = \"id_rsa.pub\"\nssh_private_key = \"id_rsa\"\n\n# Region\nregion = \"us-ashburn-1\"\n\n# Compartment\ncompartment_ocid = \u003c\"\"\u003e    (Compartment without Security Zones enabled)\ncompartment_SZ_ocid = \u003c\"\"\u003e (Compartment with Security Zones enabled)\n\nmysql_db_system_admin_password = \u003c\"\"\u003e\n\n```\n\nNOTE: There are other variables that are assigned default value such as VCN CIDR and others. These can be changed in variables.tf file\n\nDeploy:\n\n    terraform init\n    terraform plan\n    terraform apply\n\n\n### Testing your Deployment\nAfter the deployment is finished, you can test if your SpringBoot application has deployed correctly and can access picking up the value of the springboot_app_url:\n\n````\nspringboot_app_url = http://150.230.171.250/api/v1/customer\n`````\n\nThen copy it into Web browser. Here is the example of the succesfull outcome:\n\n![](./images/springbootdemo.png)\n\n## Destroy the Deployment \nWhen you no longer need the deployment, you can run this command to destroy it:\n\n    terraform destroy\n\n## Deploy the Spring Boot framework on Oracle Cloud Infrastructure with MySQL Database Service\n![](./images/oci-arch-spring-boot.png)\n\n## Reference Architecture\n\n- [Deploy the Spring Boot framework on Oracle Cloud Infrastructure with MySQL Database Service](https://docs.oracle.com/en/solutions/springboot-mysql-oci/)\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\nInitially, this project was created and distributed in [GitHub Oracle QuickStart space](https://github.com/oracle-quickstart/oci-redis). For that reason, we would like to thank all the involved contributors enlisted below:\n- Flavio Pereira (https://github.com/flavio-santino)\n- Lukasz Feldman (https://github.com/lfeldman)\n- Umair Siddiqui (https://github.com/umairs123)\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-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-spring-boot/lists"}