All Projects → oracle-terraform-modules → terraform-oci-compute-instance

oracle-terraform-modules / terraform-oci-compute-instance

Licence: other
Terraform Module for creating Oracle Cloud Infrastructure compute instances

Programming Languages

HCL
1544 projects

Projects that are alternatives of or similar to terraform-oci-compute-instance

Valheim-Free-Game-Server-Setup-Using-Oracle-Cloud
Valheim Oracle Cloud Server Setup
Stars: ✭ 24 (-17.24%)
Mutual labels:  oracle, oci, oracle-cloud-infrastructure
terraform-oci-vcn
A reusable and extensible Terraform module that provisions a VCN on Oracle Cloud Infrastructure
Stars: ✭ 22 (-24.14%)
Mutual labels:  oracle, iac, oci
oci-cloudera
Terraform module to deploy Cloudera on Oracle Cloud Infrastructure (OCI)
Stars: ✭ 20 (-31.03%)
Mutual labels:  oracle, oci
OCI-Rest-APIs-nodejs
Oracle Cloud Infrastructure REST APIs implemented in node.js, with current support for Database and limited Object Storage. More will be added.
Stars: ✭ 18 (-37.93%)
Mutual labels:  oracle, oci
terraform-examples
Terraform Examples for Oracle Cloud Infrastructure and Platfrom
Stars: ✭ 34 (+17.24%)
Mutual labels:  oracle, oracle-cloud-infrastructure
terraform-aws-account
🌳 A sustainable Terraform Package which creates Account & IAM resources on AWS
Stars: ✭ 18 (-37.93%)
Mutual labels:  iac, terraform-module
oci-quickstart
Oracle Cloud Infrastructure Quick Start
Stars: ✭ 59 (+103.45%)
Mutual labels:  oracle, oci
Terraform Oci Oke
The Terraform OKE Module Installer for Oracle Cloud Infrastructure provides a Terraform module that provisions the necessary resources for Oracle Container Engine.
Stars: ✭ 57 (+96.55%)
Mutual labels:  oracle, oci
Terraform Provider Oci
Terraform Oracle Cloud Infrastructure provider
Stars: ✭ 400 (+1279.31%)
Mutual labels:  oracle, oci
oci-utils
Oracle Cloud Infrastructure utilities
Stars: ✭ 34 (+17.24%)
Mutual labels:  oracle, oracle-cloud-infrastructure
oci-compute-jenkins-plugin
Jenkins Plugin for Oracle Cloud Infrastructure (Compute)
Stars: ✭ 12 (-58.62%)
Mutual labels:  oci, oracle-cloud-infrastructure
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (+337.93%)
Mutual labels:  oracle, oci
Cloud-Service-Providers-Free-Tier-Overview
Comparing the free tier offers of the major cloud providers like AWS, Azure, GCP, Oracle etc.
Stars: ✭ 226 (+679.31%)
Mutual labels:  oracle, oci
oci-ansible-collection
Oracle Cloud Infrastructure Ansible Collection provides an easy way to provision and manage resources in Oracle Cloud using Ansible.
Stars: ✭ 106 (+265.52%)
Mutual labels:  oracle, oracle-cloud-infrastructure
Cloudsploit
Cloud Security Posture Management (CSPM)
Stars: ✭ 1,338 (+4513.79%)
Mutual labels:  oracle, oci
Ocilib
OCILIB (C and C++ Drivers for Oracle) - Open source C and C++ library for accessing Oracle databases
Stars: ✭ 245 (+744.83%)
Mutual labels:  oracle, oci
Tora
TOra is an open source SQL IDE for Oracle, MySQL and PostgreSQL dbs
Stars: ✭ 245 (+744.83%)
Mutual labels:  oracle
terraform-aws-cloudwatch-logs
Terraform Module to Provide a CloudWatch Logs Endpoint
Stars: ✭ 59 (+103.45%)
Mutual labels:  terraform-module
Sqlfiddle3
New version based on vert.x and docker
Stars: ✭ 242 (+734.48%)
Mutual labels:  oracle
Pony
Pony Object Relational Mapper
Stars: ✭ 2,762 (+9424.14%)
Mutual labels:  oracle

Oracle Cloud Infrastructure Terraform Module for Compute Instance

This module provides an easy way to launch compute instances with advanced settings and good practices embedded.

On top of the compute instance capabilities, this module can also:

  • provision and attach additional Block Volumes to the instances,
  • assign a reserved public IP, instead of using Ephemeral,
  • assign a backup policy for boot volumes

Please Note:

All Oracle-provided images include firewall rules that allow only "root" on Linux instances or "Administrators" on Windows Server instances to make outgoing connections to the iSCSI network endpoints (169.254.0.2:3260, 169.254.2.0/24:3260) that serve the instance's boot and block volumes.

Oracle recommends that you do not use custom images without these rules unless you understand the security risks. See Compute Best Practices for recommendations on how to manage instances.

Requirements

The diagram below summarizes the required components and their respective versions to use this module.

versions

To enforce versions compatibility of both Terraform and the OCI provider, your root configuration should ideally include this block for version pinning:

terraform {
  required_version = ">= 0.12.6"
  required_providers {
    oci = {
      version = ">= 4.0.0"
    }
  }
}

For detailed information about inputs and outputs, and potential sub-modules, see docs/terraformoptions.

How to use this module

See Oracle Cloud Infrastructure documentation to get started with the Oracle Cloud Infrastructure Terraform Provider.

The examples folder contains detailed examples that shows how to use this module. The following code example creates an Oracle Cloud Infrastructure compute instance on AD-1 with an additional Block Volume attached:

module "instance" {
  source = "oracle-terraform-modules/compute-instance/oci"
  instance_count             = 1 # how many instances do you want?
  ad_number                  = 1 # AD number to provision instances. If null, instances are provisionned in a rolling manner starting with AD1
  compartment_ocid           = var.compartment_ocid
  instance_display_name      = var.instance_display_name
  source_ocid                = var.source_ocid
  subnet_ocids               = var.subnet_ocids
  public_ip                  = var.public_ip # NONE, RESERVED or EPHEMERAL
  ssh_public_keys            = var.ssh_public_keys
  block_storage_sizes_in_gbs = [50]
  shape                      = var.shape
  instance_state             = var.instance_state # RUNNING or STOPPED
  boot_volume_backup_policy  = var.boot_volume_backup_policy # disabled, gold, silver or bronze
}

What's coming next for this module?

The current focus is to close the gap between this module and the provider's capabilities. We started with a complete codebase update for HCL2 syntax compatibility, then adding support for Regional Subnets and lastly Flexible Shapes.

We will continue to push in that direction with the goal of feature parity with the provider's capabilities, as well as adding more features and integration points with other OCI services: Block Volume Backups, Secondary VNICs and IPs, etc ...

Given the dependency to Network and Storage for Compute Instances, this module is also a perfect place to illustrate module composition principles and how to reuse the other official Terraform OCI modules.

Contributing

This project is open source and maintained by Oracle.
Oracle appreciates any contributions that are made by the open source community: raising issues, improving documentation, fixing bugs, or adding new features.

Learn how to contribute.

Folks who contributed with explanations, code, feedback, ideas, testing etc.

License

Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.

Licensed under the Universal Permissive License 1.0 or Apache License 2.0.

See LICENSE for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].