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.
 
 

66 lines
2.0 KiB

# resource "oci_core_instance" "lon-lb-g0" {
# availability_domain = "JnpY:UK-LONDON-1-AD-2"
# compartment_id = var.compartment_ocid
# display_name = "lon-lb-g0"
# shape = "VM.Standard.E2.1.Micro"
# # preserve the volume if instance is deleted
# preserve_boot_volume = true
# source_details {
# source_type = "image"
# # https://docs.oracle.com/en-us/iaas/images/ubuntu-2004/
# source_id = "ocid1.image.oc1.uk-london-1.aaaaaaaabtyai7rkxcirycov253c4bmju7zgi7lifl225255g3g2se2ez6wa"
# boot_volume_size_in_gbs = "50"
# }
# metadata = {
# ssh_authorized_keys = var.ssh_public_key
# }
# timeouts {
# create = "60m"
# }
# agent_config {
# are_all_plugins_disabled = true
# is_management_disabled = true
# is_monitoring_disabled = true
# }
# create_vnic_details {
# assign_public_ip = true
# private_ip = var.lon_instances_ips["lon-lb-g0"]
# skip_source_dest_check = true
# subnet_id = oci_core_subnet.sshonly.id
# display_name = "lon-lb-g0_vnic"
# hostname_label = "lon-lb-g0"
# }
# shape_config {
# memory_in_gbs = "1"
# ocpus = "1"
# }
# }
# # resource "oci_core_vnic_attachment" "lon-lb-g0_nic" {
# # instance_id = oci_core_instance.lon-lb-g0.id
# # create_vnic_details {
# # assign_public_ip = true
# # private_ip = var.lon_instances_ips["lon-lb-g0"]
# # skip_source_dest_check = true
# # subnet_id = oci_core_subnet.london1ad2.id
# # display_name = "lon-lb-g0_vnic"
# # hostname_label = "lon-lb-g0"
# # }
# # }
# data "oci_core_private_ip" "imported_lon-lb-g0" {
# private_ip_id = "ocid1.privateip.oc1.uk-london-1.abwgiljtsi7fz67cwg6lufhfdy7vukhld5vp7v4caur3qbpterwrsoqmg7ra"
# }
# resource "cloudflare_record" "lon-lb-g0" {
# zone_id = cloudflare_zone.sudois.id
# type = "A"
# name = "lon-lb-g0.lon"
# value = oci_core_instance.lon-lb-g0.public_ip
# ttl = 60
# }