oci-free-terraform-a1-max

所属分类:其他
开发工具:HCL
文件大小:0KB
下载次数:0
上传日期:2024-01-22 14:38:39
上 传 者sh-1993
说明:  OCI地形模块:OCI资源的自动部署,包括A1计算实例、附加存储和网络设置、人工…
(OCI Terraform Module: Automated deployment of OCI resources, including an A1 compute instance, additional storage, and network setup, man…)

文件列表:
oci-a1-max-module/
LICENSE
main.tf

Typing SVG

Repo Languages and Tools

Repo Languages and Tools

Oracle Terraform Git GitHub Actions Linux Docker Bash


Buy Me A Coffee This module is used for provisioning Oracle Cloud Infrastructure (OCI) deployments, offering a comprehensive and efficient solution for setting up a robust cloud environment. It seamlessly provisions an instance of; - 1x VM.Standard.A1.Flex instance equipped with 4 OCPUs and 24 GB RAM with 100 GB boot volume. Additionally, it includes a 100 GB block volume A pivotal aspect of this module is its sophisticated networking setup, creating a Virtual Cloud Network (VCN) with all necessary components, such as subnets, security lists, and internet gateways, ensuring seamless connectivity and security. ## Prerequisites - Oracle Cloud Infrastructure account - OCI API Credentials stored in the form of GitHub Secrets ### Secrets Required | Secret Name | Description | |-------------|-------------| | `PAT_TOKEN` | PAT Token the pipeline uses to checkout the repo. | | `PKEY` | OCI SSH private key. | | `TENANCY_OCID` | OCID of your OCI tenancy. | | `USER_OCID` | OCID of the OCI user. | | `FP` | Fingerprint for the OCI user. | | `SSH_PUB_KEY` | SSH public key you wish to use for accessing the provisioned instances. | ## Automated Deployment with GitHub Actions This module is designed for seamless integration with GitHub Actions, allowing for automated deployment. The provided GitHub Action workflow, named 'Execute OCI Pipeline', is triggered manually and performs the following tasks: - Checks out the repository to the GitHub Actions runner. - Sets up Node.js and Terraform CLI environments. - Configures SSH Private Key and Terraform variables using GitHub Secrets. - Initialises Terraform and generates an execution plan. - Applies the Terraform configuration to deploy the resources. - In case of failure, the workflow is designed to automatically destroy the resources, ensuring a clean state. ## GitHub Action Execution The `main.tf` file located in the root directory of this repository is crucial for the GitHub Action execution. It serves as the entry point for the Terraform operations triggered by the GitHub Action workflow. When the workflow is run, it uses the configuration defined in `main.tf` to deploy the module. This configuration includes updating and installing additional packages, including Docker and Docker Compose, on the instances. ### Accessing the Instances Upon successful completion of the action, the public IP of the A1 instance will be displayed in the output. You can access the instance via SSH using the username `opc` and the SSH key you have provided. The SSH key is crucial for secure and authenticated access to the instances. It's important to ensure that `main.tf` is correctly set up and updated, as it directly influences the infrastructure that the GitHub Action will provision and manage in OCI (Oracle Cloud Infrastructure).


近期下载者

相关文件


收藏者