{"id":51116547,"url":"https://github.com/oracle-devrel/terraform-oci-arch-ci-cd-devops","last_synced_at":"2026-06-24T22:30:35.374Z","repository":{"id":37861989,"uuid":"459258497","full_name":"oracle-devrel/terraform-oci-arch-ci-cd-devops","owner":"oracle-devrel","description":"terraform-oci-arch-ci-cd-devops","archived":false,"fork":false,"pushed_at":"2025-01-21T20:19:16.000Z","size":100,"stargazers_count":13,"open_issues_count":0,"forks_count":16,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-21T15:35:09.423Z","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-02-14T17:26:40.000Z","updated_at":"2025-04-28T23:50:09.000Z","dependencies_parsed_at":"2024-05-16T17:29:58.352Z","dependency_job_id":"65a62f65-9673-4ebe-ac91-e97643b6bb4b","html_url":"https://github.com/oracle-devrel/terraform-oci-arch-ci-cd-devops","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/oracle-devrel/terraform-oci-arch-ci-cd-devops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-ci-cd-devops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-ci-cd-devops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-ci-cd-devops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-ci-cd-devops/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-ci-cd-devops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-arch-ci-cd-devops/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:35.276Z","updated_at":"2026-06-24T22:30:35.362Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-oci-arch-ci-cd-devops\n\nRapid delivery of software is essential for efficiently running your applications in the cloud. Oracle Cloud Infrastructure (OCI) DevOps services provide a continuous integration and deployment (CI/CD) platform for developers to easily build, test, and deploy software and applications on Oracle Cloud.\n\nThis reference architecture builds and tests a sample Node.js web application and then deploys it to OKE by using the OCI DevOps. The application source code is hosted on a DevOps code repository. The end user commits the code into the code repository, which triggers the start of a build pipeline.\n\nThe build pipeline follows a user-defined flow to build and test software, then create a container image of the latest version of the application. The output of the build is stored in the container registry as an image. Then a deployment pipeline uses the built image from the container registry and a Kubernetes manifest to deploy the most recent version of the application to OKE.\n\n\nFor details of the architecture, see [Build a continuous integration and deployment pipeline using Oracle DevOps service](https://docs.oracle.com/en/solutions/ci-cd-pipe-oci-devops/index.html)\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## 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-ci-cd-devops/releases/latest/download/terraform-oci-arch-ci-cd-devops-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    git clone https://github.com/oracle-devrel/terraform-oci-arch-ci-cd-devops\n    cd terraform-oci-arch-ci-cd-devops\n    ls\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\nSecondly, create a `terraform.tfvars` file and populate with the following information:\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# Compartment\ncompartment_ocid = \"\u003ccompartment_ocid\u003e\"\n\n# OCI User and Authtoken\noci_username       = \"\u003coci_username\u003e \n# For a federated user (single sign-on with an identity provider), enter the username in the following format: TenancyName/Federation/UserName. \n# For example, if you use OCI's identity provider, your login would be, Acme/oracleidentitycloudservice/alice.jones@acme.com. \n#If you are using OCI's direct sign-in, enter the username in the following format: TenancyName/YourUserName. For example, Acme/alice_jones. Your password is the auth token you created previously.\n\noci_user_authtoken = \"\u003coci_user_authtoken\u003e\" \n# You can get the auth token from your Profile menu -\u003e click User Settings -\u003e On left side  click *Auth Tokens -\u003e Generate Token\n\n```\n\nDeploy:\n\n    terraform init\n    terraform plan\n    terraform apply\n\n\n## Access the application\nYou can go to created OKE cluster, click on `Access Cluster`, launch `Cloud Shell`, run `kubeconfig` create command in cloud shell. \n\nNext, run the below command.\n\n    `kubectl -n example get services` \n\n- where `example` is the namespace for the cluster. \n \nYou can copy the `EXTERNAL-IP` and paste it on the browser to access the Node.JS application.\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\nNote: Application deployment within OKE will lead to OCI LoadBalancer provisioning, created outside the Terraform realm. Consequently, terraform destroy operation will not be able to destroy OKE as dependent LB will stay untouched. Therefore you should destroy LB from OCI Console perspective beforehand. Then you can continue with terraform destroy command.\n\n## Attribution \u0026 Credits\nInitially, this project was created and distributed in [GitHub Oracle QuickStart space](https://github.com/oracle-quickstart). For that reason, we would like to thank all the involved contributors enlisted below:\n- Kartik Hedge (https://github.com/KartikShrikantHedge)\n- Lukasz Feldman (https://github.com/lfeldman)\n- Nuno Gonçalves (https://github.com/nugoncal)\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-ci-cd-devops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-ci-cd-devops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-arch-ci-cd-devops/lists"}