You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

154 lines
4.3 KiB

# resource "oci_core_instance" "lon_arm_instances" {
# shape = "VM.Standard.A1.Flex"
# resource "oci_core_instance" "lon2" {
# #for_each = var.lon_instances
# #each.value, each.key
# availability_domain = var.free_availability_domain
# compartment_id = var.compartment_ocid
# display_name = var.lon_instances["lon2"]
# shape = var.instance_shape
# source_details {
# source_type = "image"
# source_id = var.instance_image_ocid[var.region]
# }
# metadata = {
# ssh_authorized_keys = var.ssh_public_key
# }
# timeouts {
# create = "60m"
# }
# agent_config {
# is_management_disabled = true
# is_monitoring_disabled = true
# }
# }
# resource "oci_core_instance" "lon3" {
# #for_each = var.lon_instances
# #each.value, each.key
# availability_domain = var.free_availability_domain
# compartment_id = var.compartment_ocid
# display_name = var.lon_instances["lon3"]
# shape = var.instance_shape
# source_details {
# source_type = "image"
# source_id = var.instance_image_ocid[var.region]
# }
# metadata = {
# ssh_authorized_keys = var.ssh_public_key
# }
# timeouts {
# create = "60m"
# }
# agent_config {
# is_management_disabled = true
# is_monitoring_disabled = true
# }
# }
# resource "oci_core_vnic_attachment" "lon2_vnic" {
# instance_id = oci_core_instance.lon2.id
# create_vnic_details {
# subnet_id = oci_core_subnet.london1.id
# display_name = "lon2_vnic"
# assign_public_ip = true
# skip_source_dest_check = true
# hostname_label = oci_core_instance.lon2.display_name
# }
# }
# resource "oci_core_vnic_attachment" "lon3_vnic" {
# instance_id = oci_core_instance.lon3.id
# create_vnic_details {
# subnet_id = oci_core_subnet.london1.id
# display_name = "lon3_vnic"
# assign_public_ip = true
# skip_source_dest_check = true
# hostname_label = oci_core_instance.lon3.display_name
# }
# }
# resource "oci_core_private_ip" "lon3" {
# display_name = "lon3_vnic"
# hostname_label = var.lon_instances["lon3"]
# ip_address = var.lon_instances_ips[var.lon_instances["lon3"]]
# vnic_id = oci_core_vnic_attachment.lon3_vnic.vnic_id
# }
# resource "oci_core_private_ip" "lon2" {
# display_name = "lon2_vnic"
# hostname_label = var.lon_instances["lon2"]
# ip_address = var.lon_instances_ips[var.lon_instances["lon2"]]
# vnic_id = oci_core_vnic_attachment.lon2_vnic.vnic_id
# }
# resource "oci_core_instance_console_connection" "lon1connection" {
# #Required
# instance_id = oci_core_instance.lon1.id
# public_key = var.ssh_public_key
# }
# total 200 gb block storage for free
# boot volumes are minimum 50gb
# 2x instances = 100gb
# 200gb-100gb=100gb
# this uses the full quote
# resource "oci_core_volume" "lon3" {
# compartment_id = var.compartment_ocid
# availability_domain = var.free_availability_domain
# display_name = "lon3_volume"
# is_auto_tune_enabled = true
# size_in_gbs = "100"
# }
# resource "oci_core_volume_attachment" "lon3" {
# attachment_type = "paravirtualized"
# instance_id = oci_core_instance.lon3.id
# volume_id = oci_core_volume.lon3.id
# #device = "/dev/sdd"
# display_name = "lon3_volume_attachment"
# is_read_only = false
# is_shareable = false
# }
# resource "cloudflare_record" "lon2" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = oci_core_instance.lon2.display_name
# value = oci_core_instance.lon2.public_ip
# ttl = 60
# }
# resource "cloudflare_record" "lon3" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = oci_core_instance.lon3.display_name
# value = oci_core_instance.lon3.public_ip
# ttl = 60
# }
# # resource "cloudflare_record" "lon2_private" {
# # zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = "${oci_core_instance.lon2.display_name}.oci"
# value = oci_core_instance.lon2.private_ip
# ttl = 60
# }
# resource "cloudflare_record" "lon3_private" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = "${oci_core_instance.lon3.display_name}.oci"
# value = oci_core_instance.lon3.private_ip
# ttl = 60
# }