#resource "oci_core_instance" "vm_instance_ampere" { # availability_domain = data.oci_identity_availability_domains.ads.availability_domains[0].name # compartment_id = oci_identity_compartment.tf-playground.id # shape = "VM.Standard.A1.Flex" # display_name = join("", [var.vm_name, "10"]) # preserve_boot_volume = false # is_pv_encryption_in_transit_enabled = true # freeform_tags = var.tags # # # lifecycle { # # prevent_destroy = true # # } # # shape_config { # memory_in_gbs = 24 # ocpus = 4 # } # # metadata = { # ssh_authorized_keys = var.ssh_public_key # } # # source_details { # source_id = var.vm_image_ocid_ampere # source_type = "image" # } # # availability_config { # is_live_migration_preferred = true # } # # create_vnic_details { # assign_public_ip = true # subnet_id = oci_core_subnet.vcn-public-subnet.id # assign_private_dns_record = true # hostname_label = join("", [var.vm_name, "10"]) # private_ip = join(".", ["10", "0", "0", 110]) # nsg_ids = [oci_core_network_security_group.tf-playground-network-security-group.id] # freeform_tags = var.tags # } #}