Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oracle/terraform-opc-compute-instance
Terraform Module for creating Oracle Cloud Infrastructure OPC Compute instances
https://github.com/oracle/terraform-opc-compute-instance
oci-classic oracle-cloud terraform terraform-modules
Last synced: 3 months ago
JSON representation
Terraform Module for creating Oracle Cloud Infrastructure OPC Compute instances
- Host: GitHub
- URL: https://github.com/oracle/terraform-opc-compute-instance
- Owner: oracle
- License: upl-1.0
- Archived: true
- Created: 2017-08-29T00:16:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T02:10:47.000Z (over 3 years ago)
- Last Synced: 2024-07-09T01:19:03.584Z (4 months ago)
- Topics: oci-classic, oracle-cloud, terraform, terraform-modules
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
OCI Classic Compute Instance
============================This Terraform module creates a single Oracle Cloud Infrastructure **Classic** Compute (OPC) instance with a persistent block storage boot volume and a single network interface on either the Shared Network or an IP Network interface, with an optional Public IP address reservation.
Usage
-----### Persistent instance on IP Network
If an IP Network is provided the instance is created with interface on the ip network. Note that the Public IP Address reservation, if provided, must be an [`opc_compute_ip_address_reservation`](https://www.terraform.io/docs/providers/opc/r/opc_compute_ip_address_reservation.html)
```tf
module "opc_instance_on_ip_network" {
source = "oracle/compute-instance/opc"
instance_name = "instance-on-ip-network"
instance_shape = "oc3"
ip_network = "${opc_compute_ip_network.ip-network.name}"
ip_reservation = "${opc_compute_ip_address_reservation.ip-reservation.name}"
search_domains = ["cloud.oracle.com", "oraclecloud.com"]
}resource "opc_compute_ip_network" "ip-network" {
name = "test-ip-network"
ip_address_prefix = "192.168.1.0/24"
}resource "opc_compute_ip_address_reservation" "ip-reservation" {
name = "test-ip-reservertion"
ip_address_pool = "public-ippool"
}
```### Persistent instance on Shared Network
If no IP Network is provided the instance is created with the interface on the Shared Network. Note that the Public IP Address reservation, if provided, must be an [`opc_compute_ip_reservation`](https://www.terraform.io/docs/providers/opc/r/opc_compute_ip_reservation.html)
```tf
module "opc_instance_on_shared_network" {
source = "oracle/compute-instance/opc"
instance_name = "instance-on-shared-network"
instance_shape = "oc3"
ip_reservation = "${opc_compute_ip_reservation.ip-reservation.name}"
search_domains = ["cloud.oracle.com", "oraclecloud.com"]
}resource "opc_compute_ip_reservation" "ip-reservation" {
parent_pool = "/oracle/public/ippool"
permanent = true
}
```License
-------Licensed under the [Universal Permissive License v 1.0](LICENSE.md)
Copyright © 2017, 2021 Oracle and/or its affiliates. All rights reserved.